public class Route extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Route.Action
Action types for a maneuver.
|
static class |
Route.Direction
Direction types for a maneuver's action.
|
static class |
Route.Leg
Represents a single leg in a route.
|
static class |
Route.Maneuver
Represents a maneuver to make while travelling.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Route> |
CREATOR
Parcelable implementation. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Parcelable implementation. |
boolean |
equals(Object obj) |
float |
getDistance()
Returns the length of the route, in meters.
|
GeoPointsList |
getGeometry()
Returns the polyline of the entire route.
|
List<Route.Leg> |
getLegs()
Returns the list of legs this route consists of.
|
float |
getTravelTime()
Returns the estimated travel time along the route, in seconds.
|
int |
hashCode() |
void |
writeToParcel(Parcel target,
int flags)
Parcelable implementation. |
public static final Parcelable.Creator<Route> CREATOR
Parcelable
implementation.public float getDistance()
public float getTravelTime()
public GeoPointsList getGeometry()
public int describeContents()
Parcelable
implementation.describeContents
in interface Parcelable
public void writeToParcel(Parcel target, int flags)
Parcelable
implementation.writeToParcel
in interface Parcelable