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

Not reaching the exact origin/destination locations #1190

Open
subrina0013 opened this issue Dec 16, 2024 · 2 comments
Open

Not reaching the exact origin/destination locations #1190

subrina0013 opened this issue Dec 16, 2024 · 2 comments

Comments

@subrina0013
Copy link

Hi
I found that MATSim is not reaching the exact origin/destination locations but stops close by. Sometimes, it stops the other side of a river or an inaccessible obstacle between the locations. Why is that? Is the some kind of tolerance distance involve here?
For example: in this picture, the red route is MATSim. There is an airfield between locations and the route should be the blue one. But MATSim stopped the other side of the airfield. Is there anything to do to solve this?

mat_prob1

@kainagel
Copy link
Member

Can't say if there is anybody who can answer this in detail. In principle, the code looks for the nearest link. It does that (I think) by looking for the nearest node and from there going to a link. In your case, it depends a bit on which of the white links can be used by the involved mode ... if all the white links can be used by the mode that you are using, then it should do the right thing (i.e. use the blue path). If this is not the case, I would need more info on what you are doing.

Also, the "facility" data structure has a "link" reference. It might be possible to set this by hand. Typically, MATSim will then try to leave the facility via that link. However, it can happen that that link does not treat the necessary mode (e.g. a bicycle cannot enter a motorway). In this case, it falls back on the above approach.

There is also a bit of an issue that re the "access point" from the activity location to the network is solved by different mobsims in different ways. The QSim has the access (and egress) point for any link towards the downstream end of the link. This often makes it look weird since travellers first go to the end of the link and then jump "back". A useful reminder is that MATSim's resolution is not higher than the "links" level ... if you need a higher resolution, you need to divide up your links into shorter segments.

@subrina0013
Copy link
Author

subrina0013 commented Dec 16, 2024

I will try to add links with the facilities and see how that goes.
However, what if the incoming and return links are different? I mean, what if there is an opportunity of direct merging to the incoming and outgoing links which are for example one way roads. So, when the end-link for going to that facility vs the start-link of coming back from that facility are different? Or what if the closest link is not the link that gives the fastest route?

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