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.
|
java.util.List<Point> |
getPoints()
Returns remaining list of ordered points of the route.
|
RouteStep |
getRouteStep()
Returns the route step/edge/fragment closest to the user, where the
getClosestLocationInRoute() is. |
java.util.List<RouteSegment> |
getSegments()
Return list of ordered points split by floor, each list contains points from one floor, but can
have multiple lists of the same floor.
|
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 java.util.List<Point> getPoints()
getSegments()
public java.util.List<RouteSegment> getSegments()
For example, if there is no path to go to the other side of the same floor and you need to go up one floor and then go down again to the original floor, this method will return one segment on the current floor, one segment on the upper floor and one more segment in the current floor.
Drawing example: if you want to draw all the points of a floor, you should draw a polyline for each list that contains the floor you want to show.
public 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)