NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I would like make a simple desktop application that can calculate the distance between two cities given by the user. I know that there is no practical purpose for this but I would just like to build it as a programming exercise. I'm having a hard time however with finding the right documentation for this. I would like to do this through an API request and it should be street level routing.

Is there anybody that could help me out here by pointing me in the right direction?

Thanks in advance.

asked 25 Sep '16, 15:04

Tezen's gravatar image

Tezen
16114
accept rate: 0%

edited 28 Sep '16, 14:37

1

Please EDIT your question and tell us whether you want to have the needed routing data via online download / API request ... or via offline map files on your PC / device ... and then: do you want to know direct lien connection, or street level routing?

(27 Sep '16, 20:39) stephan75

You should have a look at the OSM wiki about Routing and its sub-page about online routing

Please try each online service listed there, and evaluate yourself whether the user interface comes near your aim, or that you can do some coding for your own.

Also pay attention to the age of each routing database ... some are outdated.

permanent link

answered 28 Sep '16, 18:45

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

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:

×76
×24
×9

question asked: 25 Sep '16, 15:04

question was seen: 3,550 times

last updated: 28 Sep '16, 18:45

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum