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) |
Location |
getClosestLocationInRoute()
Returns the closest location in the route from the user location provided to
NavigationManager.updateWithLocation(Location) . |
Point |
getClosestPointInRoute()
Deprecated.
|
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 location (getClosestLocationInRoute() ). |
double |
getDistanceToEndStep()
Returns the distance to the end this step
|
double |
getDistanceToGoal()
Returns the distance from
getClosestLocationInRoute() 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
getClosestLocationInRoute() is. |
double |
getTimeToEndStep()
Returns the estimated time to go from
getClosestLocationInRoute() to the end of getRouteStep() ,
considering a speed of 1 meter/second |
double |
getTimeToGoal()
Returns the estimated time to go from
getClosestLocationInRoute() 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()
getClosestLocationInRoute()
is.RouteStep
. Default is RouteStep.EMPTY
.public Point getClosestPointInRoute()
getClosestLocationInRoute()
NavigationManager.updateWithLocation(Location)
.
For route navigation, we assume this as the user location.public Location getClosestLocationInRoute()
NavigationManager.updateWithLocation(Location)
.
For route navigation, we assume this as the user location.Location
public double getDistanceToClosestPointInRoute()
NavigationManager.updateWithLocation(Location)
)
and the closest route location (getClosestLocationInRoute()
).public double getDistanceToGoal()
getClosestLocationInRoute()
to route's goal point.public Indication getCurrentIndication()
public Indication getNextIndication()
Indication.EMPTY
public double getDistanceToEndStep()
public double getTimeToGoal()
getClosestLocationInRoute()
to the goal/end of route,
considering a speed of 1 meter/secondpublic double getTimeToEndStep()
getClosestLocationInRoute()
to 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)