Not snapping to nearest road (radius, sensitivity configuration?)

Been poking around GraphHopper for years, but new to the community here. I think this is a basic question, but I can’t seem to figure it out.

Here’s an example that I believe will show the problem I am having. When entering (2) locations, the street chosen (Serrano Rd) is not the nearest street (Via Del Rio) on the map. Is this something I can configure in GraphHopper with a radius or sensitivity value, or is it perhaps underlying OSM issue?

Direct link: Driving Directions - GraphHopper Maps

Thanks in advance!

Edit: Could it be that the “access” is incorrectly marked “private”? Are private access roads avoided?

Yes, the problem is the private access.

Got it, thank you for the quick reply. I made a change to OSM to clear up that specific case.

Is there a GraphHopper-recommended best practice™ for allowing routing where road access is private? Said another way, can this be handled via config/profiles or would this be an instance where modifying the code would be required?

Yes, you can allow this with an option

   graph.flag_encoders: car|block_private=false
1 Like

Works great, thanks!

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