NavigationService

A NavigationService is the entry-point protocol for MapboxCoreNavigation. It contains all the dependencies needed by the MapboxNavigation UI SDK, as well as dependencies for its child objects. MapboxNavigationService is the default implementation. If you would like to implement your own core-navigation stack, be sure to conform to this protocol.

  • The location manager for the service. This will be the object responsible for notifying the service of GPS updates.

  • A reference to a MapboxDirections service. Used for rerouting.

  • The active router, responsible for all route-following.

  • The events manager, responsible for all telemetry.

  • The route along which the user is expected to travel.

  • The simulation mode of the service.

  • The simulation speed-multiplier. Modify this if you desire accelerated simulation.

  • The Amount of time the service will wait until it begins simulation in a poor GPS scenerio. Defaults to 2.5 seconds.

  • The NavigationService delegate. Wraps RouterDelegate messages.

  • Starts the navigation service.

  • Stops the navigation service. You may call start() after calling stop().

  • Ends the navigation session. Used when arriving at destination.

  • Interrogates the navigationService as to whether or not the passed-in location is in a tunnel.