Dears, could you please inform me if there are an Api that can give us the distance between A and B using API? Like Google Distance Matrix API. Thanks. asked 22 Oct '14, 12:27 Danil Rudakov |
Yes, OSRM (Open Source Routing Machine) provides this feature - both for point-to-point queries and for matrices. See https://github.com/Project-OSRM/osrm-backend/wiki/Server-api. There is a public instance at router.project-osrm.org which is available for light usage within the terms of use (see the OSRM wiki). An example matrix call would be: If you have more significant needs, you can set up your own instance of OSRM. answered 22 Oct '14, 12:48 Richard ♦ |
There is also the GraphHopper Directions API based on OSM data with a Matrix API providing times and distances. (Note: I'm the author of GraphHopper) answered 26 Mar '15, 21:50 peatar |
Dislaimer: I work for iGeolise The TravelTime API can be used to calculate the true distance from A to B (rather than as the crow flies) as well as calculating the travel time between the two points (plus lots more). Sign up for an API key here. answered 16 Jun '16, 10:37 Louisa-maps Is the map data based on OSM?
(16 Jun '16, 11:37)
scai ♦
|
as far as i found OSRM only provides a travel-time-matrix (although they call it distance matrix). if i am wrong, please post, because i am looking for distance matrices answered 29 Jun '16, 08:30 gemerden |
Someone asked a new question as an answer; that has been moved to https://help.openstreetmap.org/questions/43223/is-there-any-possibility-to-provide-coordinates-within-a-distancei-mean-defined-travel-time