de.cm.osm2po.sd.guide
Class SdTurnInfo
java.lang.Object
de.cm.osm2po.sd.guide.SdTurnInfo
- All Implemented Interfaces:
- java.lang.Comparable<SdTurnInfo>
public class SdTurnInfo
- extends java.lang.Object
- implements java.lang.Comparable<SdTurnInfo>
Helper class encapsulating additional
path-link infos such as turnAngle etc.
- Author:
- (c) 2013 - Carsten Moeller - info@osm2po
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TI_ONPATH
public static final int TI_ONPATH
- See Also:
- Constant Field Values
TI_WRONGWAY
public static final int TI_WRONGWAY
- See Also:
- Constant Field Values
TI_NOTURN
public static final int TI_NOTURN
- See Also:
- Constant Field Values
TI_DRIVABLE
public static final int TI_DRIVABLE
- See Also:
- Constant Field Values
SdTurnInfo
public SdTurnInfo(int angle,
int type,
SdSection section)
getAngle
public int getAngle()
getType
public int getType()
getSection
public SdSection getSection()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(SdTurnInfo that)
- Specified by:
compareTo
in interface java.lang.Comparable<SdTurnInfo>
fetchTurnInfos
public static SdTurnInfo[] fetchTurnInfos(SdGraph sdGraph,
int idxFrom,
SdPath sdPath)
- Analyzes all outgoing ways of one crossing in driving direction.
- Parameters:
sdGraph
- SdGraph
idxFrom
- Index (0 to n-2) of From-Path-SegmentsdPath
- SdPath
- Returns:
- Array of
SdTurnInfo
(Target-Edges) where the intrinsic path
element is at index 0. The first element additionally contains a
fully read SdEdge
with coords.