PointNotFoundException for Military Base / Private Roads


#1

I’m using GraphHopper version 0.10.1. I’m also using the, " north-america-latest.osm.pbf" file. And I’m getting a lot of PointNotFoundException. The majority of them are in Hawaii and it’s usually when one of the locations are in a military base. Any thoughts on how to handle it gracefully?

For example:

GraphHopper Link:
https://graphhopper.com/maps/?point=21.291744%2C-157.835904&point=21.444017%2C-157.743872&locale=en-US&vehicle=car&weighting=fastest&elevation=true&use_miles=false&layer=Omniscale

Google Map Link:
https://www.google.com/maps/dir/'21.444017,-157.743872'/21.291744,-157.835904/@21.4418778,-157.9156016,11z/data=!4m7!4m6!1m3!2m2!1d-157.743872!2d21.444017!1m0!3e0


#2

I can’t look right now but it’s likely a similar issue that I ran into regarding gated neighborhoods. Look at the underlying mapping data in OSM database. There’s probably a private gate or road restriction. If so, normal car driving directions won’t route through it. GH will treat the blocked off sections as islands. Or, if the island is all military and too small I think it will get excluded. There’s a config setting for the minimum island size.

If you want those roads to be included, you could maybe lower the minimum island size, and make a vehicle encoder that allows routing through private military roadways and gates.