Package com.graphhopper.routing.ch
Class ShortcutUnpacker
java.lang.Object
com.graphhopper.routing.ch.ShortcutUnpacker
Recursively unpack shortcuts.
- Author:
- Peter Karich, easbar
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionShortcutUnpacker
(RoutingCHGraph graph, ShortcutUnpacker.Visitor visitor, boolean edgeBased) -
Method Summary
Modifier and TypeMethodDescriptionvoid
visitOriginalEdgesBwd
(int edgeId, int adjNode, boolean reverseOrder, int prevOrNextEdgeId) void
visitOriginalEdgesFwd
(int edgeId, int adjNode, boolean reverseOrder, int prevOrNextEdgeId) Finds an edge/shortcut with the given id and adjNode and calls the visitor for each original edge that is packed inside this shortcut (or if an original edge is given simply calls the visitor on it).
-
Constructor Details
-
ShortcutUnpacker
-
-
Method Details
-
visitOriginalEdgesFwd
public void visitOriginalEdgesFwd(int edgeId, int adjNode, boolean reverseOrder, int prevOrNextEdgeId) Finds an edge/shortcut with the given id and adjNode and calls the visitor for each original edge that is packed inside this shortcut (or if an original edge is given simply calls the visitor on it).- Parameters:
reverseOrder
- if true the original edges will be traversed in reverse order
-
visitOriginalEdgesBwd
public void visitOriginalEdgesBwd(int edgeId, int adjNode, boolean reverseOrder, int prevOrNextEdgeId)
-