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
ignore hgv=no
on second pass via costing option
#4568
Comments
Ha, we do have |
Talking about it again offline, that might not be the best option. If we'd pretend car access on a second pass with such an option, an HGV would of course also take edges in the middle of the route which are Another option: a costing option Ideally we wouldn't apply such a penalty for correlated edges so that we don't get too imbalanced in the forward/reverse trees (one tree starting in an inner city full of such edges, the other close to highways), and also not too imbalanced in between correlated edges for a single location (with a radius set, where one edge might have Any opinions on this? |
That would be greatly appreciated for our use case. We encounter many scenarios where our goal is to adhere to truck restrictions as much as possible. However, in cases where no alternative exists, we accept breaking restriction on edge to find a route at any cost. The 'hgv_access_penalty' appears to be precisely what would solve this issue. It would be a significant improvement over falling back to car mode routing, as it attempts to respect restrictions wherever possible, and only break it on edges where is no other choice. So, +1 from me |
leaving again the outcome of our discussion on this topic: generally the (latest) proposal is fine (i.e. adding a penalty), but we need to make sure that by default we're retaining current behavior, i.e. do the gymnastics to turn this new penalty into a hard hgv=no. also, we really do want the same behavior as last thing: I vowed to review our entire current logic for this I'll spend a few hours on seeing if such an abstraction could work in a sane way, in case I should actually work on this anytime soon. |
it's fairly common that
hgv=no
is tagged on a road, e.g. in inner cities, but certain companies have a legal permit to enter anyways. it's similar tohgv=permit
but currently we handle that the same ashgv=private
which is fine, that's a hardly used tag anyways and would make such an option data-driven when there's actually no such data. instead I'd propose to make it a costing option, e.g.ignore_truck_access
which would switch a truck's access mask to a car's access mask (not sure if possible in code, but smth like that).we already have a(see below, we also haveignore_restrictions
flag, but that's for all other restrictions (turn, dimensions etc), not base access.ignore_access
)also smth we could just turn on in a second pass.
I think that would help logistics companies a lot. any opinions on this?
The text was updated successfully, but these errors were encountered: