hi I want to develop an UWP app (a Windows phone app) which shows a map on a user interface. When user select 2 points it should shows the shortest path on the map. I am going to implement the dijkstra's algorithm to find the shortest path.I can implement this algorithm if I have map data. I just don't understand how to start. How to integrate openstreet map with my UWP app and how to get map data.

Please help me, Thanks

asked 05 Jan, 08:26

swiftDroid's gravatar image

swiftDroid
21227
accept rate: 0%

edited 05 Jan, 22:44

nevw's gravatar image

nevw
8.4k2482149


Basically there are 3 solutions:

  • you use the API of a 3rd party provider to specify 2 points and let them calculate the route. This will probably cost you money to use their API, but you do no have to create a routing algorithm, nor do you have to download OSM data.
  • You download OSM-data to a local server, transform that data in such a way that you can develop a routing algorithm. Then you create an API on top of that server which you call from your UWP app (a Windows phone app)
  • You do the same as in step 2, but move the data to the phone (so-called off line maps) instead of keeping it on the server. This is the approach Maps.me, OsmAnd, MagicEarth etc. use
permanent link

answered 05 Jan, 10:48

escada's gravatar image

escada
14.9k14124240
accept rate: 20%

Thank you so much for the great clarification :)

(08 Jan, 02:41) swiftDroid
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×228
×105
×81
×38
×1

question asked: 05 Jan, 08:26

question was seen: 601 times

last updated: 08 Jan, 02:41

powered by OSQA