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?
_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to