| Modifier and Type | Class and Description |
|---|---|
static class |
RouteStep.Builder
RouteStep builder static inner class. |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<RouteStep> |
CREATOR |
static RouteStep |
EMPTY |
static int |
EMPTY_ID |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
Double |
getDistance()
|
double |
getDistanceToGoal()
|
Point |
getFrom()
Start point of this step.
|
int |
getId()
Position of this RouteStep in the list of steps (
Route.getSteps()) of the route to which it belongs. |
Point |
getTo()
End point of this step.
|
int |
hashCode() |
boolean |
isFirst()
Returns true if this is the first step in the route.
|
boolean |
isLast()
Returns true if this is the last step in the route.
|
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int EMPTY_ID
public static final RouteStep EMPTY
public static final android.os.Parcelable.Creator<RouteStep> CREATOR
public int getId()
Route.getSteps()) of the route to which it belongs.
Also works as an unique identifier of this RouteStep in the Route.public Point getFrom()
public Point getTo()
public double getDistanceToGoal()
getFrom())
and the last point in the route (getTo() of the last step).public Double getDistance()
getDistance in interface Edge<Point>public boolean isFirst()
public boolean isLast()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable