public class NavigationProgress extends Object implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
NavigationProgress.Builder
NavigationProgress builder static inner class. |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<NavigationProgress> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(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() |
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<NavigationProgress> CREATOR
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 int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable