valhalla icon indicating copy to clipboard operation
valhalla copied to clipboard

Route costing for residential roads

Open ArterialMapping opened this issue 3 years ago • 3 comments

Is there a way to add costing to a route request so that the route avoids certain types of roadways such as residential?

I know I can avoid Highway, but did not see any documentation for roadways.

ArterialMapping avatar May 13 '22 11:05 ArterialMapping

no sorry, we don't have a generic way to avoid road types from routing over them. we do have that for snapping the waypoints (origin/via/destination), that won't help you much though I think.

nilsnolde avatar May 13 '22 12:05 nilsnolde

no sorry, we don't have a generic way to avoid road types from routing over them. we do have that for snapping the waypoints (origin/via/destination), that won't help you much though I think.

Got it, this would be cool functionality for the future. But I should be able to generate avoid polygons as a workaround for now (I think).

ArterialMapping avatar May 13 '22 13:05 ArterialMapping

yeah there is a lot of stuff that we dont allow complete control over in the costing. honestly i would love it if we just opened all of the parameters up in costing, had a single costing class with some presets to select certain things like mountain bike or truck etc. the thing is that would be a major revision but at least it would make it possible to never have to answer a question with the answer we have to give here which is:

well, we hardcode per-road class per-costing an affinity for certain types of roads and you cant touch it from the user-facing api.

kevinkreiser avatar May 13 '22 14:05 kevinkreiser