public class RouteLeg
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<RouteLeg> |
CREATOR |
Constructor and Description |
---|
RouteLeg(java.lang.String id,
double length,
Shape shape,
java.util.List<Maneuver> maneuvers,
java.util.List<Prompt> prompts,
Features features,
java.util.List<Instruction> instructions,
Traffic traffic) |
Modifier and Type | Method and Description |
---|---|
Coordinate |
calculatePositionCoordinate(double position) |
int |
describeContents() |
Features |
getFeatures() |
java.lang.String |
getId() |
java.util.List<Instruction> |
getInstructions() |
double |
getLength() |
java.util.List<Maneuver> |
getManeuvers() |
java.util.List<Prompt> |
getPrompts() |
Shape |
getShape()
Returns the shape of a route, including a list of coordinates and some helper methods.
|
Traffic |
getTraffic() |
void |
writeToParcel(android.os.Parcel parcel,
int flags) |
public static final android.os.Parcelable.Creator<RouteLeg> CREATOR
public Coordinate calculatePositionCoordinate(double position)
public java.lang.String getId()
public double getLength()
public Shape getShape()
public java.util.List<Maneuver> getManeuvers()
public java.util.List<Prompt> getPrompts()
public Features getFeatures()
public java.util.List<Instruction> getInstructions()
public Traffic getTraffic()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable