First, just want to say great product!
Really excited about release of version 10. However, i can’t seem to get a local install to work like graphhapper.com maps?
Example:
If you take off surface == GRAVEL, it shows shorter route, and if you add || surface==DIRT it prevents the route by saying “Connection between locations not found” which is correct! (Or at least what i am trying to achieve, don’t want a custom model to be able to go on dirt.)
See here:
However, i can not duplicate this with local install of GraphHopper 9.1 or 10. It allows this path with what appears to be a “snap to” maybe? (End of path shows dotted lines onto Dirt road destination, and pulling a semi trailer over cow dung and rattlesnake fields is frowned upon
I have tried Custom Models, and editing config.yml and changing
routing.snap_preventions_default: tunnel, bridge, ferry, (i have tried adding *rattlesnake, foot stuff, bike stuff, etc, but no luck?).
But seriously, can i see a copy of your config.yml file? (The ones from here don’t seem to have the same result: https://raw.githubusercontent.com/graphhopper/graphhopper/10.x/config-example.yml)
To reproduce, simply install fresh 9.1 or 10.0 with OSM file for KS here:
https://download.geofabrik.de/north-america/us/kansas.html
Use same params in the link and notice this the red dotted lines that takes you to destination instead of “Connection between locations not found”?
Here is custom model from clicking gear box (top left) and enable “custom model active”
{
“distance_influence”: 15,
“priority”: [
{
“if”: “surface==DIRT”,
“multiply_by”: “0”
}
],
“speed”: ,
“areas”: {
“type”: “FeatureCollection”,
“features”:
}
}
Looking at commit here, it looks fine?
I’m sure i am just missing something in snap_preventions maybe? Is there a way maybe to say snaps cannot be over 50 meters?
Thanks for a great product, appreciate any hints i can try.
Thanks!