Skip to content
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

fix: external inlinks for LTZ policy #295

Merged
merged 3 commits into from
Jan 23, 2025
Merged

fix: external inlinks for LTZ policy #295

merged 3 commits into from
Jan 23, 2025

Conversation

sebhoerl
Copy link
Collaborator

The LTZ policy currently can have certain edge cases where agents do traverse the Limited Traffic Zone, although they don't perform a stop inside. This happens if their origin is a link that is outside of the ZTL, but it leads to a node that has only outlinks that are inside the ZTL (i.e. their endpoint is inside). In that case the trip should perform a detour around the ZTL (and the agent will try to exit as quickly as possible due to the routing penalty), but the route will indeed pass through the ZTL for a small number of links.

This PR fixes the problem by first identifying all links that are inside the ZTL and then also including links that lead to intersections that don't have another exit than into the ZTL. The links are identified in a round-based approach.

@sebhoerl sebhoerl enabled auto-merge (squash) January 23, 2025 09:39
@sebhoerl sebhoerl merged commit 7734704 into develop Jan 23, 2025
1 check passed
@sebhoerl sebhoerl deleted the fix/ltz-inlinks branch January 23, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant