-
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
Refactor graph code #2
Comments
A first ideaJust start very concretely by refactoring code in this project, see if it helps substantially, and then try using in the LTN tool also. |
Decided to take a simpler approach to start. Instead of serving up a generic graph, just make some common functions that can be used. It's the caller's responsibility to transform the resulting structs into their own objects. Embedding custom data made the final code less structured, and the scraping was simple only for sev snape, not LTN |
version that'll work for Severance Snape. #2
Noting that the tests caught a bug -- I forgot to transform barrier points at first!
Could consider using in:
|
This isn't really related to Sev Snape, I'm just exploring this idea here first.
I'm duplicating lots of backend code between projects to turn OSM data into a graph, do point-to-point routing, and floodfill / calculate isochrones. Some projects are starting to need multiple modes as well, like a-b-street/severance_snape#18 here. If there was something more generic, what would it look like?
Requirements
RoadID
andIntersectionID
types, array lookupssplit_edges
particularly.geo
now, but should ideallyThe text was updated successfully, but these errors were encountered: