RoutingControllerInterface
public protocol RoutingControllerInterface
                - 
                  
                  
Request a route. This process is done on backend. It will take some time depending on request size to get the response.
Declaration
Swift
func requestRoute(request: MNRouteRequest, routingRequestCallback: RoutingRequestCallback)Parameters
requesta request object indicating all the destinations of the route and whether it should route by order or calculate the shorest path.
 - 
                  
                  
Start navigation.
Calling this function will start the navigation process inside core library. It will notify when turn by turn instruction received, if reach destination, or if recalculating routing is necessary.
Declaration
Swift
func startNavigation(route: MNRoute, routingStatusCallback: RoutingStatusCallback)Parameters
routeThe route to start navigation for
routingStatusCallbackCallback for notification as routing status changes
 - 
                  
                  
Stop navigation.
Calling this function will stop navigation process.
Declaration
Swift
func stopNavigation() - 
                  
                  
Gets distance and time to a search entity from start to destination with routeOptions
Declaration
Swift
func requestEstimate(start: MNSearchEntity, destination: MNSearchEntity, routeOptions: MNRouteOptions, completion: @escaping ((MNRouteDistanceTime?) -> Void))Parameters
startStarting point for route
destinationDestination point for route
routeOptionsThe current route options
completionA callback closure with the route distance and time
 - 
                  
                  
Gets distance and time to a search entity from current location.
Declaration
Swift
func requestEstimateFromCurrentLocation(destination: MNSearchEntity, routeOptions: MNRouteOptions, completion: @escaping ((MNRouteDistanceTime?) -> Void))Parameters
destinationSearch entity whose distance/time to compute
routeOptionsThe current route options
completionA callback closure with the route distance and time
 - 
                  
                  
Gets distance and time to a mercator zone from current location.
Declaration
Swift
func requestEstimateFromCurrentLocation(toMercatorZone mercatorZone: MNMercatorZone, routeOptions: MNRouteOptions, completion: @escaping ((MNRouteDistanceTime?) -> Void))Parameters
toMercatorZonethe MercatorZone to calculate distance to
routeOptionsThe current route options
completionA callback closure with the route distance and time
 - 
                  
                  
Gets distance and time to an entity zone from current location.
Declaration
Swift
func requestEstimateFromCurrentLocation(toEntityZone entityZone: MNEntityZone, routeOptions: MNRouteOptions, completion: @escaping ((MNRouteDistanceTime?) -> Void))Parameters
toEntityZonethe Entity Zone to calculate distance to
routeOptionsThe current route options
completionA callback closure with the route distance and time
 - 
                  
                  
Declaration
Swift
func fetchDestinationInstructionEntity(propertyId: Int) -> DestinationInstructionsEntity? - 
                  
                  
Declaration
Swift
func fetchEntityFromDestinationInstructions(entityId: Int, buildingId: Int, propertyId: Int) -> RoutingMessageEntity? 
      RoutingControllerInterface Protocol Reference