| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Route> |
CREATOR |
| Constructor and Description |
|---|
Route(DirectionsRequest request,
List<RouteStep> steps,
List<Indication> indications,
Building building,
Collection<Floor> buildingFloors)
Just for internal SDK use
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
Collection<RouteStep> |
getEdges()
Equal to
getSteps(). |
RouteStep |
getFirstStep()
Returns first step
|
Point |
getFrom()
Point where the route starts.
|
List<Indication> |
getIndications()
Return ordered list of instructions to go to the destination
|
RouteStep |
getLastStep()
Returns last step
|
Collection<Point> |
getNodes()
Returns a collection of points of the route (not ordered)
|
List<Point> |
getPoints()
Returns list of ordered points of the route
|
DirectionsRequest |
getRequest()
Returns the search criteria, provided to
DirectionsManager, whose result is the current Route. |
InternalRouteInfo |
getRouteInfo()
Just for internal SDK use.
|
RouteStep |
getStep(int stepId)
Returns a route step by its
RouteStep.getId() |
List<RouteStep> |
getSteps()
Returns ordered list of steps to go to the goal point
|
Point |
getTo()
Last point and goal of the route.
|
int |
hashCode() |
Indication |
indicationForNextStep(int routeStepIndex)
Returns the next indication to a given step.
|
boolean |
isAccessible()
Returns whether the current route is suitable to wheel chairs (true) or not (false).
|
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Route> CREATOR
public Route(DirectionsRequest request, List<RouteStep> steps, List<Indication> indications, Building building, Collection<Floor> buildingFloors)
IllegalArgumentException - if null value is provided to NonNull parameter,
or empty list is provided to size(min = 1) parameterpublic Collection<RouteStep> getEdges()
getSteps(). Allows handling Route as a Graph.public Collection<Point> getNodes()
public List<Point> getPoints()
public List<RouteStep> getSteps()
RouteSteppublic RouteStep getFirstStep()
RouteStep.getFrom() is the request parameter DirectionsRequest.getFrom()public RouteStep getLastStep()
RouteStep.getTo() is the request parameter DirectionsRequest.getTo()public RouteStep getStep(int stepId)
RouteStep.getId()stepId - id of step (RouteStep.getId())public InternalRouteInfo getRouteInfo()
public List<Indication> getIndications()
public DirectionsRequest getRequest()
DirectionsManager, whose result is the current Route.DirectionsRequestpublic boolean isAccessible()
DirectionsRequest.isAccessible() from getRequest().public Point getFrom()
DirectionsRequest.getFrom() from getRequest().Pointpublic Point getTo()
DirectionsRequest.getTo() from getTo().Pointpublic Indication indicationForNextStep(int routeStepIndex)
routeStepIndex - the index of a route step inside a routeIndication object or empty if the routeStepIndex is not validpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable