de.cm.osm2po.sd.guide
Class SdTurnInfo

java.lang.Object
  extended by 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

Field Summary
static int TI_DRIVABLE
           
static int TI_NOTURN
           
static int TI_ONPATH
           
static int TI_WRONGWAY
           
 
Constructor Summary
SdTurnInfo(int angle, int type, SdSection section)
           
 
Method Summary
 int compareTo(SdTurnInfo that)
           
static SdTurnInfo[] fetchTurnInfos(SdGraph sdGraph, int idxFrom, SdPath sdPath)
          Analyzes all outgoing ways of one crossing in driving direction.
 int getAngle()
           
 SdSection getSection()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

SdTurnInfo

public SdTurnInfo(int angle,
                  int type,
                  SdSection section)
Method Detail

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-Segment
sdPath - 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.

osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de