-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adjust rate #4711
Comments
@buxinator rates for You can add a custom weight name and a way handler in |
@oxidase can you help me with a bit of example code since i am not used to Lua scripting? |
@buxinator let specific road has id 524005927. You can add to
and change
Other ways will have "durations" weights. |
Thanks @oxidase ! Short Explanation what my goal is: if profile.properties.weight_name == 'custom' then When I change weight_name='custom', routing only selects railway lines and nothing else. |
@buxinator sorry, just forgot that rates must be specified for all ways if the weight name is not
|
Stale. |
Do we have a more up to date example of adjusting rate/weight? |
It would be great to have a new example explaining the details of setting custom weights for each of the different modes of transport, explaining how to tune the route recalculation. It's quite easy to set weights high to eliminate a particular segment, but harder to understand how to tune the weight calculation to balance different priorities (especially with additional raster data used as input to weights.) |
Hi,
I try to adjust rates for some ways in foot.lua, to use them preferred without setting speed higher.
But actually I don't know where to do it. Please help
The text was updated successfully, but these errors were encountered: