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

how to calculate distance between two coordinates?

0

How do we calculate distance between two coordinates?

I have seen the http://project-osrm.org/docs/v5.15.2/api/#table-service but I do not know the distances result output, how it should be interpreted.

I already looked up the internet for days but still no answer . Hoping someone could assist me. Thanks in advance.

asked 26 Oct '21, 01:20

genesislubrigas's gravatar image

genesislubrigas
11111
accept rate: 0%

1

What distance do you need? Straight line or along a route?

(26 Oct '21, 03:08) InsertUser

Hi. thanks for replying on my question. Yes, along a route of those two coordinates.

(26 Oct '21, 04:09) genesislubrigas

One Answer:

0

This is not my answer, but I found it in OSM Forum. Hope this will help you. I think http://www.movable-type.co.uk/scripts/latlong.html is a good resource

answered 27 Oct '21, 05:46

Chemmangat%20Hari's gravatar image

Chemmangat Hari
111
accept rate: 0%

Source code available on GitHub .