Route for car is absolutely wrong

I have started Route Engine on my local machine and route response is absolutely wrong (rather than
result from https://graphhopper.com/maps/)
I use default config (but just switch on turn_cost) and routes for car is incorrect!
Routing outside city roads
image
Routing thought buildings:


etc.

The same request via https://graphhopper.com/maps works properly:

So I believe that the problem is in my config file. But There no clear documentation about config file.
Also I found a lot of issues with question like ‘What is config for used for https://graphhopper.com/maps’, for example:
What GraphHopper configuration does graphhopper.com/maps/ use?
Big difference in passed time between points after map matching
but nobody explain what we should do to fix the problem.

Please help to fix this problem! Please help! Thanks!

I have had this occurance when my map points have been the incorrect GPS settings. It caused the background map to be shifted to one side, even though graphhopper routed correctly in its eyes, it just looked wrong due to the background map.
From memory I had to use WGS84
Perhaps that is the same issue you are encountering?
Are you using “as the crow flies” for your routing?

1 Like

I use OpenStreetMap data (imported form http://download.geofabrik.de/europe/belarus.html).
The route points I get from api response body (json field ‘points’ contain encoded route).
I guess the problem isn’t in map background images cause decoded route from official GraphHopper API looks correct.
(example request: https://graphhopper.com/api/1//route?point=53.907903%2C27.525516&point=53.876416%2C27.574997&type=json&locale=ru-RU&vehicle=car&weighting=fastest&key=0dc4f299-a491-452f-97e0-515c296c9453&turn_costs=true)
Also my local engine returns different distance in comparing with GraphHopper request.

Looks like route is correct at the first part of routing:


But at some point it goes crazy

Sorry guys!! No problem with route, my fail!
I used to use for decode response routing points https://developers.google.com/maps/documentation/utilities/polylineutility site. But it works incorrect:

but actually route is:

No problem! Sorry to disturb!

2 Likes

No worries, that is what this forum is for! Glad you got it sorted.
Remembering back my issue was around using shapefiles incorrectly converted instead of the background. :frowning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.