I am new to ORS so maybe I am missing a point.
I would like to get the cost of traveling from A to B in terms of distance and duration. The Python code I’m using looks like this:
from openrouteservice import client
clnt = client.Client(key=api_key)
coord= [[13.372582, 52.520295], [13.391476, 52.508856]]
regular_route = clnt.directions(coordinates= coord, profile= ‘driving-car’, geometry= ‘false’)
distance, duration = regular_route[‘routes’][‘summary’].values()
out: distance/1000 = 4.81389, duration/60= 8.5483
However, by deploying the same coordinates in OSM I am getting these values:
Distance: 2.7km. Time: 0:06
The differences are huge. I tried different preferences to choose the route but nothing seems to help.
What is the reason for that and how can I correct it?
Thank you in advance.