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

Route ignores restrictions on roads #1197

Open
subrina0013 opened this issue Jan 9, 2025 · 2 comments
Open

Route ignores restrictions on roads #1197

subrina0013 opened this issue Jan 9, 2025 · 2 comments

Comments

@subrina0013
Copy link

I see MATSim ignores any restrictions of the roads,no matter if it is a private/restricted road. It also ignores designated road restrictions. For example: the route (red route in image1) takes an exit which is designated at times. I checked several routing engines and each of those avoids that exit. Is there a way I can solve this?

image
image
image
image

@JWJoubert
Copy link
Contributor

Hi @subrina0013, it will depend on how you used the MATSim infrastructure to convert OpenStreetMap data into a MATSim routable network. If you use the OSM parser (out of the box), it will not necessarily honour all the road restrictions. Especially time-dependent restrictions. For those, you could implement NetworkChangeEvents but arguable requires a bit more detailed know-how.

@subrina0013
Copy link
Author

Thank you for your reply. I found another issue with the network. A same segment of the network is divided into 4 separate links (2 ways). There are 2 links for the same direction (from/to node are same) but with 2 different lengths.
Why is that? If 2 routes with the same origin-destination takes 2 different links (highlighted in the image), they will have different travel time and length. How I can deal with this?

image

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

No branches or pull requests

2 participants