This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to develop a Desktop Application that uses OSM data for map display and routing?

0

I understand that OSM is just the data. For using this data I would need some other API to use it with.

I am developing a desktop application (WPF), its a cab booking application so i would need to somehow show a map in my application. Over the map a route of multiple addresses (5, 10, 20 or more) will be shown. I would need the mileage calculation... driving time.. etc etc. I need this all OFFLINE (as there will be massive bookings going on, so is mileage calculation) so we need it really fast as well.

Environment: Windows 7, .net4, WPF, MVVM Pattern, C#

Please guide me in detail.

asked 30 Jan '15, 11:30

Sohaib%20Ahmed's gravatar image

Sohaib Ahmed
11112
accept rate: 0%

edited 30 Jan '15, 12:08

sleske's gravatar image

sleske
4.1k135678


2 Answers:

4

The components you need are

  1. Map (or map tile) server
  2. Geocoding
  3. Routing (which you call mileage calculation)

Open Source solutions exist for all these components, which you can re-use (i.e. set up a map server, geocoding server, and routing server in your local environment), or you could use libraries or code fragments to implement these things in your software directly.

Generally speaking, most of these things are easy as long as you are dealing with a small area and become more difficult if you want to serve a whole country or more, simply because of the increased data volume.

Even if you use ready made servers (for example, a tile server as described on switch2osm.org, a routing server from project-osrm.org, and the Nominatim software for geocoding), throwing it all together into one application will be considerable integration work which we at help.openstreetmap.org can't do for you.

If you'd like to use a library, perhaps check out the Open Source http://osmsharp.com/ for which commercial support is available from the author.

answered 30 Jan '15, 14:00

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

1

Check out the commercial service providers in the OSM world. Volunteers like here in this help forum are not your non-paid workers (@"guide me in detail") for a (assumed) non-free application development.

answered 30 Jan '15, 16:39

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 30 Jan '15, 16:47

Source code available on GitHub .