public class NavigationProgress
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NavigationProgress.Builder
NavigationProgress builder static inner class. |
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
Point |
getClosestPointInRoute()
Returns the route point closest to the user location provided to
NavigationManager.updateWithLocation(Location) . |
Indication |
getCurrentIndication()
Returns the current indication
|
double |
getDistanceToClosestPointInRoute()
Returns the distance between the real user location (provided to
NavigationManager.updateWithLocation(Location) )
and the closest route point (getClosestPointInRoute() ). |
double |
getDistanceToEndStep()
Returns the distance to the end this step
|
double |
getDistanceToGoal()
Returns the distance from
getClosestPointInRoute() to route's goal point. |
Indication |
getNextIndication()
Returns the next indication.
|
RouteStep |
getRouteStep()
Returns the route step/edge/fragment closest to the user, where the
getClosestPointInRoute() is. |
double |
getTimeToEndStep()
Returns the estimated time to go from
getClosestPointInRoute() the end of getRouteStep() ,
considering a speed of 1 meter/second |
double |
getTimeToGoal()
Returns the estimated time to go from
getClosestPointInRoute() to the goal/end of route,
considering a speed of 1 meter/second |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public RouteStep getRouteStep()
getClosestPointInRoute()
is.RouteStep
. Default is RouteStep.EMPTY
.public Point getClosestPointInRoute()
NavigationManager.updateWithLocation(Location)
.
For route navigation, we assume this as the user location.RouteStep
. Default is RouteStep.EMPTY
.public double getDistanceToClosestPointInRoute()
NavigationManager.updateWithLocation(Location)
)
and the closest route point (getClosestPointInRoute()
).public double getDistanceToGoal()
getClosestPointInRoute()
to route's goal point.public Indication getCurrentIndication()
public Indication getNextIndication()
Indication.EMPTY
public double getDistanceToEndStep()
public double getTimeToGoal()
getClosestPointInRoute()
to the goal/end of route,
considering a speed of 1 meter/secondpublic double getTimeToEndStep()
getClosestPointInRoute()
the end of getRouteStep()
,
considering a speed of 1 meter/secondpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel dest, int flags)