public static class IARoute.Leg
extends java.lang.Object
implements android.os.Parcelable
IARoute.Points
.
Includes the distance and direction of the segment as well as the start and end points.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<IARoute.Leg> |
CREATOR |
Constructor and Description |
---|
Leg(IARoute.Point begin,
IARoute.Point end,
double length,
double direction,
java.lang.Integer index)
Constructor
|
Leg(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
IARoute.Point |
getBegin()
Get the
IARoute.Point 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.
|
IARoute.Point |
getEnd()
Get the
IARoute.Point representing the end of this leg. |
double |
getLength()
Get the length of the line segment in meters.
|
void |
writeToParcel(android.os.Parcel parcel,
int flags) |
public static final android.os.Parcelable.Creator<IARoute.Leg> CREATOR
public Leg(IARoute.Point begin, IARoute.Point end, double length, double direction, java.lang.Integer index)
public Leg(android.os.Parcel in)
public double getLength()
public double getDirection()
public IARoute.Point getBegin()
IARoute.Point
representing the beginning of this leg.public IARoute.Point getEnd()
IARoute.Point
representing the end of this leg.public java.lang.Integer getEdgeIndex()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable