public class Route
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Route.TrafficOverview |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Route> |
CREATOR |
Constructor and Description |
---|
Route(java.lang.String routeId,
java.util.List<RouteLeg> routeLegs,
Route.TrafficOverview trafficOverview,
RouteOptions routeOptions,
Coordinate startCoordinate,
java.util.List<Destination> destinations,
java.lang.String name) |
Route(java.lang.String routeId,
java.util.List<RouteLeg> routeLegs,
Route.TrafficOverview trafficOverview,
RouteOptions routeOptions,
Coordinate startCoordinate,
java.util.List<Destination> destinations,
java.lang.String name,
Coordinate requestLocation) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.util.List<Destination> |
getDestinations() |
java.lang.String |
getId() |
RouteLeg |
getLeg(int legIndex) |
int |
getLegCount() |
java.util.List<RouteLeg> |
getLegs()
Returns the list of route legs.
|
java.lang.String |
getName() |
Coordinate |
getRequestLocation()
For internal use only
|
RouteOptions |
getRouteOptions()
Returns a RouteOptions object containing the route options used to request the route.
|
Coordinate |
getStartCoordinate() |
Route.TrafficOverview |
getTrafficOverview()
Returns the traffic overview type for the route.
|
void |
setRequestLocation(Coordinate requestLocation)
For internal use only
|
void |
writeToParcel(android.os.Parcel parcel,
int flags) |
public static final android.os.Parcelable.Creator<Route> CREATOR
public Route(java.lang.String routeId, java.util.List<RouteLeg> routeLegs, Route.TrafficOverview trafficOverview, RouteOptions routeOptions, Coordinate startCoordinate, java.util.List<Destination> destinations, java.lang.String name)
public Route(java.lang.String routeId, java.util.List<RouteLeg> routeLegs, Route.TrafficOverview trafficOverview, RouteOptions routeOptions, Coordinate startCoordinate, java.util.List<Destination> destinations, java.lang.String name, Coordinate requestLocation)
public java.lang.String getId()
public java.util.List<RouteLeg> getLegs()
public RouteLeg getLeg(int legIndex)
public int getLegCount()
public Route.TrafficOverview getTrafficOverview()
public RouteOptions getRouteOptions()
public Coordinate getStartCoordinate()
public java.util.List<Destination> getDestinations()
public java.lang.String getName()
public void setRequestLocation(Coordinate requestLocation)
public Coordinate getRequestLocation()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable