osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Showing Foot travel time instead of Car travel time

Open anjali2701 opened this issue 3 years ago • 2 comments

r = requests.get(f"http://router.project-osrm.org/route/v1/driving/{77.383551},{28.643367};{77.358407},{28.648673}?overview=false""")

Result shows: 'duration': 3161.5, 'distance': 3951.5}

For 4km distance, the time travelled is 52 min which is foot travel time & not the driving time. Please look into the issue

anjali2701 avatar Jun 10 '22 13:06 anjali2701

Please use

https://routing.openstreetmap.de/routed-car/... https://routing.openstreetmap.de/routed-bike/... https://routing.openstreetmap.de/routed-foot/...

The other url is going away

datendelphin avatar Jun 10 '22 16:06 datendelphin

Demo API finally returns car travel time again. But like @datendelphin mentioned and helped me in my issue, anyone using the API should form his/her URLs like the following:

https://routing.openstreetmap.de/routed-car/route/v1/driving/-121.8863286,37.3382082;-121.988583,37.5485396?overview=full

humblydone avatar Jun 13 '22 02:06 humblydone