[GraphHopper] Multiple Extended Storages
Erik Formella
erik at uber.com
Mon Oct 27 21:35:48 UTC 2014
It looks like to be able to support turn costs we have to sacrifice the
ability to use any other extended storage.
I am thinking I can refactor GraphStorage to use an ExtendedStorageManager.
It would allow us to write things like:
TurnCostStorage turnCostStorage =
graph.getExtendedStorageManager().get("turn_costs");
instead of doing:
if (graph.getExtendedStorage() istanceof TurnCostStorage) { ... }
This is just my first guess at what the interfaces should look like, but
does that seem like a change you would appreciate in GraphHopper?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20141027/73577aa5/attachment.html>
More information about the GraphHopper
mailing list