-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use map matching with GTFS shapes to find routes in GTFS link mapper #37
base: original-direction
Are you sure you want to change the base?
Conversation
@michaz this is a rough draft of a map matching-based implementation of the GTFS link mapper we're using that I wrote. The I'm hoping to test this, but there seems to be some conflicts with the latest version of the core GH dependencies we're using and the current code in the map matching repo; when I try to run this function, I get an error on this line, as it seems that Is there a way around this perhaps? Or is updating the map matching library our best bet? |
@michaz It seems as though I've hit another wall here, and this time it might be a tougher issue to address. Since my last update, I found a version of the GH map matching packages that "agrees with" the code currently in our fork, and tried running the GTFS link mapping process again using GTFS feeds from Sacramento (~15 feeds, I've used this region for testing the link mapper up to this point). The error I'm hitting is:
I tried a few things based off of GH forum posts to see if I could get around this (mainly, increasing the Any other thoughts on things I could try here? I'm guessing that fixing this would require manual editing of the GTFS, and if that's the case, we might just consider this an "infeasible" solution and move on |
Ah yes, this requires a closer look. -- You're right, this means that we couldn't map-match the geometry. I wouldn't let that discourage us, let me check what may be going on. |
To expand on this: You're exactly right, this "exception" is not an error, it's just a negative result -- we couldn't (fully) map-match the provided geometry for whatever reason. So to make it fault-tolerant in the sense that the program doesn't crash, we would catch that exception. However, I don't know how we would react to that situation. The simple point-to-point routing you're currently doing can react to a not-found route by just.. not having a route for that segment. But what would we do with the map-matching approach here? We could just not mark any edges for that route to prefer in the subsequent point-to-point routing. Would that help? Or is that getting too messy and we should really shelf it until we think we really need it? |
No description provided.