valhalla icon indicating copy to clipboard operation
valhalla copied to clipboard

No path could be found for input

Open khanhmb opened this issue 9 months ago • 2 comments

Hi guys, I'm using Valhalla for routing, but it returns 'No path could be found for input.' I tested the same input on the web version, and a path was found, although it doesn't reach the destination. My self host: Return 400 Image Image https://valhalla.openstreetmap.de/: Got the route but last point does not reach the dest Image I’d like to solve this issue or at least get the same result as the web version. Thank you!

khanhmb avatar Apr 16 '25 02:04 khanhmb

This issue occurs when there is no direct path between the two points. To improve routing, you can add a radius (in meters) to each location object. This allows the router to snap the point to a nearby road segment within the specified distance (e.g., 50 meters).

eg: { "lat": 41.8642816, "lon": -87.6206875, "name": "location name", "radius": 20 }

abhishekkushwaha-fareye avatar Jun 16 '25 05:06 abhishekkushwaha-fareye

The default behavior wrt radius is that by default, a 0 meter radius is assumed, in which case the nearest possible candidate will be used. Can you try a /locate request and check that Valhalla loads your tile set? Posting the request and server logs could help us hunt down the cause of your issue.

chrstnbwnkl avatar Jun 16 '25 06:06 chrstnbwnkl

closing due to inactivity

nilsnolde avatar Jul 20 '25 10:07 nilsnolde