Skip to content

Replace GraphHopperStorage by BaseGraph where it is not needed - #2540

Merged
easbar merged 10 commits into
masterfrom
public_basegraph
Mar 18, 2022
Merged

easbar merged 10 commits into
masterfrom
public_basegraph

Conversation

@easbar

@easbar easbar commented Mar 17, 2022

Copy link
Copy Markdown
Member

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