8000 Replace GraphHopperStorage by BaseGraph where it is not needed by easbar · Pull Request #2540 · graphhopper/graphhopper · GitHub
[go: up one dir, main page]

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

Replace GraphHopperStorage by BaseGraph where it is not needed #2540

Merged
merged 10 commits into from
Mar 18, 2022

Conversation

easbar
Copy link
Member
@easbar easbar commented Mar 17, 2022

GraphHopperStorage is not really what it sounds like. It's a combination of the BaseGraph (our road network data structure), an EncodingManager (which should actually be, and soon will be called TagParsingManager) and the properties file. Since BaseGraph is not even public and thus cannot be used standalone we use GraphHopperStorage everywhere, even in places where no tag parsing is going on at all.

In this PR I thus made BaseGraph public and started using it in many places that are not related to parsing OSM tags like EncodingManager does. For example QueryGraph, CH and LM are all things that we do on top of a BaseGraph without anything related to parsing tags or the properties file.

easbar added 7 commits March 17, 2022 08:39
* we can build CHs and QueryGraph from BaseGraph without EncodingManager or properties file (=GraphHopperStorage)
* creating CHs should not require GraphHopperStorage
…Graph

* PrepareContractionHierarchies no longer depends on GraphHopperStorage, just BaseGraph
@easbar easbar merged commit f4befb5 into master Mar 18, 2022
@easbar easbar deleted the public_basegraph branch March 18, 2022 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0