Hi all!
We are running the local version of graphhopper in our server and using the Massachusetts OSM file with:
sudo ./graphhopper.sh -a web -i massachusetts-latest.osm.pbf -o m-gh
When we use:
http://localhost:8989/route?point=42.339048,-71.120270&point=42.360349,-71.087463&vehicle=car&locale=en_US
we get:
“{“hints”:{“visited_nodes.average”:“140.0”,“visited_nodes.sum”:“140”},“info”:{“copyrights”:[“GraphHopper”,“OpenStreetMap contributors”],“took”:9},“paths”:[{“distance”:5213.199,“weight”:338.864689,“time”:338832,“transfers”:0,“points_encoded”:true,“bbox”:[-71.120274,42.338656,-71.083805,42.360326],“points”:”} …
which means that it takes 338 seconds to go between those points which is way too fast.
BUT using the graphhopper API through
https://graphhopper.com/api/1/route?point=42.339048,-71.120270&point=42.360349,-71.087463&vehicle=car&calc_points=false&key=XXXX-XXXXX
we get
[1] “{“hints”:{“visited_nodes.average”:“198.0”,“visited_nodes.sum”:“198”},“info”:{“copyrights”:[“GraphHopper”,“OpenStreetMap contributors”],“took”:8},“paths”:[{“distance”:5209.414,“weight”:691.946656,“time”:613776,“transfers”:0,“snapped_waypoints”:”}ilaGvtaqLybC}lE"}]}"
and thus the time is 613 seconds which is reasonable.
Why is there such a significant difference between them? Should I do something to the local version of the API?
Thanks in advance.
Best