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

Distance between countries

1

Hi,

I'm a newbie and feel a little foolish to ask this question. I have learned that you can get the routing distance between two points like Paris and Berlin. Is it possible to ask for the distance between two points separated by countries, like driving from Paris to Berlin means x km in France and y km in Germany?

How could you do that?

Thank you very much for your advice

asked 20 Feb '15, 11:26

Karten-Newbie's gravatar image

Karten-Newbie
41225
accept rate: 0%

Hi,

thank you for your advice. What I have learned so far is that I can get the routing information from (http://map.project-osrm.org/) and with that information I can get the country information from Nominatin.

What I'm still missing - is there any trick how I could get the information if one of the routing distances is a highway, and/or whether I do have to pay toll. What I'm asking is: Is there anything like Nominatin with additional fields (highway, toll road)?

Thanks again for your help.

(26 Feb '15, 10:21) Karten-Newbie

One Answer:

2

Most routing engines provide you with instructions which often contain markers where you cross the border. You may use these points to calculate the distance within a given country (like MapQuest Open). Often even if it's missing (osrm, openrouteservice, YOURS, graphhopper) there is an indicator of border crossing like roads changing their names, which could help you. (There's a few link on my bookmark page.)

answered 20 Feb '15, 17:12

grin's gravatar image

grin
158127
accept rate: 0%

Source code available on GitHub .