public class IARoutingLeg
extends RoutingLeg
IARoutingPoints
.
Includes the distance and direction of the segment as well as the start and end points.Constructor and Description |
---|
IARoutingLeg(RoutingPoint begin,
RoutingPoint end,
double length,
double direction,
java.lang.Integer index)
Constructor
|
Modifier and Type | Method and Description |
---|---|
IARoutingPoint |
getBegin()
Get the
IARoutingPoint representing the beginning of this leg. |
double |
getDirection()
Get the direction of the line segment in ENU coordinates in degrees.
|
java.lang.Integer |
getEdgeIndex()
Get the zero-based index of the edge corresponding to this leg
in the original JSON graph.
|
IARoutingPoint |
getEnd()
Get the
IARoutingPoint representing the end of this leg. |
double |
getLength()
Get the length of the line segment in meters.
|
public IARoutingLeg(RoutingPoint begin, RoutingPoint end, double length, double direction, java.lang.Integer index)
public double getLength()
public double getDirection()
public IARoutingPoint getBegin()
IARoutingPoint
representing the beginning of this leg.public IARoutingPoint getEnd()
IARoutingPoint
representing the end of this leg.public java.lang.Integer getEdgeIndex()