MapKit Mobile SDK

Warning

This feature is available in the Full MapKit SDK version

MMKDrivingRouter

class MMKDrivingRouter : NSObject

Interface for the driving router.

Summary

Instance methods

func requestRoutes(with points: [MMKRequestPoint],
                drivingOptions: MMKDrivingOptions,
                vehicleOptions: MMKDrivingVehicleOptions,
                  routeHandler: @escaping MMKDrivingSessionRouteHandler) -> MMKDrivingSession
Builds a route

func requestRoutesSummary(with points: [MMKRequestPoint],
                       drivingOptions: MMKDrivingOptions,
                       vehicleOptions: MMKDrivingVehicleOptions,
                       summaryHandler: @escaping MMKDrivingSummarySessionSummaryHandler) -> MMKDrivingSummarySession
Creates a route summary

Instance methods

requestRoutes(with:drivingOptions:vehicleOptions:routeHandler:)

func requestRoutes(with points: [MMKRequestPoint],
                drivingOptions: MMKDrivingOptions,
                vehicleOptions: MMKDrivingVehicleOptions,
                  routeHandler: @escaping MMKDrivingSessionRouteHandler) -> MMKDrivingSession

Builds a route.

Parameters

points

Route points.

drivingOptions

Driving options.

vehicleOptions

Vehicle options.

routeListener

Route listener object.


requestRoutesSummary(with:drivingOptions:vehicleOptions:summaryHandler:)

func requestRoutesSummary(with points: [MMKRequestPoint],
                       drivingOptions: MMKDrivingOptions,
                       vehicleOptions: MMKDrivingVehicleOptions,
                       summaryHandler: @escaping MMKDrivingSummarySessionSummaryHandler) -> MMKDrivingSummarySession

Creates a route summary.

Parameters

points

Route points.

drivingOptions

Driving options.

vehicleOptions

Vehicle options.

summaryListener

Summary listener object.