public final class RouteNavigationManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
RouteNavigationManager.RouteNavigationManagerEventListener |
Constructor and Description |
---|
RouteNavigationManager(Route route)
Constructs a new RouteNavigatorManager instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
double |
getBubbleRadius() |
NavigationCue |
getCueFromItem(PointMapItem item) |
android.util.Pair<java.lang.Integer,PointMapItem> |
getCurrentObjective() |
double |
getDistanceBetweenTwoPoints(GeoPoint pt1,
GeoPoint pt2) |
double |
getDistanceFromRoute(GeoPoint location) |
boolean |
getIsOffRoute() |
GeoPoint |
getLocation() |
PointMapItem |
getNextPointWithTrigger(GeoPoint location) |
PointMapItem |
getObjectiveAfter(int index) |
PointMapItem |
getObjectiveBefore(int index) |
double |
getOffRouteBubbleRadius()
Gets the bubble radius for being considered off route, in meters.
|
Route |
getRoute() |
java.util.List<GeoPoint> |
getSurroundingGeometry(GeoPoint point,
double beforeDistance,
double afterDistance) |
boolean |
hasArrivedAtPoint(int index) |
boolean |
hasDepartedPoint(int index) |
boolean |
hasEnteredTrigger(int index,
int triggerIndex) |
boolean |
isEngineInitialized()
Methods
|
boolean |
isPointWithinItemTrigger(GeoPoint point,
PointMapItem targetPoint) |
boolean |
isPointWithinTrigger(GeoPoint point) |
void |
moveCurrentObjectiveBackward() |
void |
moveCurrentObjectiveForward() |
void |
registerListener(RouteNavigationManager.RouteNavigationManagerEventListener listener)
Registers a new event listener.
|
void |
setBubbleRadius(double bubbleRadius) |
boolean |
setCurrentObjective(int index,
PointMapItem item,
boolean isFromRouteProgression) |
void |
setGpsStatus(boolean found)
Could be any number of things, but should indicate to the user that their has
been a change in the positional status that would impact navigation
GPS lost/GPS found, etc.
|
void |
setLocation(GeoPoint location) |
void |
setOffRouteBubbleRadius(double bubbleRadius)
Sets the bubble radius to be considered off the route.
|
void |
unregisterListener(RouteNavigationManager.RouteNavigationManagerEventListener listener)
Unregisters the given event listener.
|
public RouteNavigationManager(Route route)
route
- The route we are navigatingpublic double getBubbleRadius()
public void setBubbleRadius(double bubbleRadius)
public double getOffRouteBubbleRadius()
public void setOffRouteBubbleRadius(double bubbleRadius)
bubbleRadius
- bubble radius in meterspublic boolean hasArrivedAtPoint(int index)
public boolean hasDepartedPoint(int index)
public boolean hasEnteredTrigger(int index, int triggerIndex)
public android.util.Pair<java.lang.Integer,PointMapItem> getCurrentObjective()
public boolean setCurrentObjective(int index, PointMapItem item, boolean isFromRouteProgression)
public PointMapItem getObjectiveBefore(int index)
public void moveCurrentObjectiveForward()
public void moveCurrentObjectiveBackward()
public PointMapItem getObjectiveAfter(int index)
public Route getRoute()
public boolean getIsOffRoute()
public GeoPoint getLocation()
public void setGpsStatus(boolean found)
public void setLocation(GeoPoint location)
public boolean isEngineInitialized()
public java.util.List<GeoPoint> getSurroundingGeometry(GeoPoint point, double beforeDistance, double afterDistance)
public boolean isPointWithinItemTrigger(GeoPoint point, PointMapItem targetPoint)
public boolean isPointWithinTrigger(GeoPoint point)
public PointMapItem getNextPointWithTrigger(GeoPoint location)
public NavigationCue getCueFromItem(PointMapItem item)
public double getDistanceBetweenTwoPoints(GeoPoint pt1, GeoPoint pt2)
public double getDistanceFromRoute(GeoPoint location)
public void dispose()
public void registerListener(RouteNavigationManager.RouteNavigationManagerEventListener listener)
listener
- public void unregisterListener(RouteNavigationManager.RouteNavigationManagerEventListener listener)
listener
-