Package com.navmii.sdk.navigation
Class NavigationManager
java.lang.Object
com.navmii.sdk.navigation.NavigationManager
public final class NavigationManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NavigationManager.NavigationListener
static interface
NavigationManager.TrafficOnRouteImageListener
-
Constructor Summary
Constructors Constructor Description NavigationManager(geolife.android.navigationsystem.NavigationSystem navigationSystem)
-
Method Summary
Modifier and Type Method Description void
addNavigationListener(NavigationManager.NavigationListener listener)
Adds a listener responding to events described in theNavigationManager.NavigationListener
interface.void
addTrafficOnRouteImageListener(NavigationManager.TrafficOnRouteImageListener listener)
Adds a listener responding to events described in theNavigationManager.TrafficOnRouteImageListener
interface.NavigationInfo
getNavigationInfo()
NearPoiItemAlerter
getSpeedCameraAlerter()
Returns an instance ofNearPoiItemAlerter
, that can be used to receive notifications about approaching speed cameras.TrackRecorder
getTrackRecorder()
boolean
isDemoRouteActive()
void
removeNavigationListener(NavigationManager.NavigationListener listener)
Removes the specified listener from the list.void
removeTrafficOnRouteImageListener(NavigationManager.TrafficOnRouteImageListener listener)
Removes the specified listener from the list.void
snapCoordinates(MapCoordinates coordinates, double heading, double radiusInMeters, SnappingType snappingType, SnappingListener listener)
Tries to find the road nearest to the specified coordinates within a specified radius with a specified heading considered.void
startDemoRoute(Route route)
Starts demo route.void
stopDemoRoute()
Stops demo route.
-
Constructor Details
-
NavigationManager
public NavigationManager(geolife.android.navigationsystem.NavigationSystem navigationSystem)
-
-
Method Details
-
startDemoRoute
Starts demo route. -
stopDemoRoute
public void stopDemoRoute()Stops demo route. -
isDemoRouteActive
public boolean isDemoRouteActive()- Returns:
- true if demo route is active, false otherwise.
-
getNavigationInfo
- Returns:
- The navigation information.
-
getTrackRecorder
- Returns:
- Instance of a track recorder.
-
snapCoordinates
public void snapCoordinates(MapCoordinates coordinates, double heading, double radiusInMeters, SnappingType snappingType, SnappingListener listener)Tries to find the road nearest to the specified coordinates within a specified radius with a specified heading considered.- Parameters:
coordinates
- The coordinates.heading
- Target heading.radiusInMeters
- Maximum distance to the nearest point of the road.snappingType
- The types of the roads to consider.listener
- The listener that will be notified about snapping result.
-
addNavigationListener
Adds a listener responding to events described in theNavigationManager.NavigationListener
interface. You can add multiple listeners using this method.- Parameters:
listener
- The listener.
-
removeNavigationListener
Removes the specified listener from the list.- Parameters:
listener
- The listener.
-
addTrafficOnRouteImageListener
Adds a listener responding to events described in theNavigationManager.TrafficOnRouteImageListener
interface. You can add multiple listeners using this method.- Parameters:
listener
- The listener.
-
removeTrafficOnRouteImageListener
public void removeTrafficOnRouteImageListener(NavigationManager.TrafficOnRouteImageListener listener)Removes the specified listener from the list.- Parameters:
listener
- The listener.
-
getSpeedCameraAlerter
Returns an instance ofNearPoiItemAlerter
, that can be used to receive notifications about approaching speed cameras.- Returns:
- NearPoiItemAlerter object.
-