Class NavigationManager


  • public final class NavigationManager
    extends java.lang.Object
    • Constructor Detail

      • NavigationManager

        public NavigationManager​(geolife.android.navigationsystem.NavigationSystem navigationSystem)
    • Method Detail

      • startDemoRoute

        public void startDemoRoute​(Route route)
        Starts demo route.
      • stopDemoRoute

        public void stopDemoRoute()
        Stops demo route.
      • isDemoRouteActive

        public boolean isDemoRouteActive()
        Returns:
        true if demo route is active, false otherwise.
      • getNavigationInfo

        public NavigationInfo getNavigationInfo()
        Returns:
        The navigation information.
      • getTrackRecorder

        public TrackRecorder 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.
      • removeNavigationListener

        public void removeNavigationListener​(NavigationManager.NavigationListener listener)
        Removes the specified listener from the list.
        Parameters:
        listener - The listener.
      • removeTrafficOnRouteImageListener

        public void removeTrafficOnRouteImageListener​(NavigationManager.TrafficOnRouteImageListener listener)
        Removes the specified listener from the list.
        Parameters:
        listener - The listener.
      • getSpeedCameraAlerter

        public NearPoiItemAlerter getSpeedCameraAlerter()
        Returns an instance of NearPoiItemAlerter, that can be used to receive notifications about approaching speed cameras.
        Returns:
        NearPoiItemAlerter object.