Warning

This feature is available in the Full MapKit SDK version

MMKDrivingRouter

@interface MMKDrivingRouter : NSObject

Interface for the driving router.

Summary

Instance methods

- (nonnull MMKDrivingSession *)
    requestRoutesWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
             drivingOptions:(nonnull MMKDrivingOptions *)drivingOptions
             vehicleOptions:(nonnull MMKDrivingVehicleOptions *)vehicleOptions
               routeHandler:(nonnull MMKDrivingSessionRouteHandler)routeHandler;

Builds a route

- (nonnull MMKDrivingSummarySession *)
    requestRoutesSummaryWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
                    drivingOptions:(nonnull MMKDrivingOptions *)drivingOptions
                    vehicleOptions:
                        (nonnull MMKDrivingVehicleOptions *)vehicleOptions
                    summaryHandler:
                        (nonnull MMKDrivingSummarySessionSummaryHandler)
                            summaryHandler;

Creates a route summary

Instance methods

requestRoutesWithPoints:drivingOptions:vehicleOptions:routeHandler:

- (nonnull MMKDrivingSession *)
    requestRoutesWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
             drivingOptions:(nonnull MMKDrivingOptions *)drivingOptions
             vehicleOptions:(nonnull MMKDrivingVehicleOptions *)vehicleOptions
               routeHandler:(nonnull MMKDrivingSessionRouteHandler)routeHandler;

Builds a route.

Parameters

points

Route points.

drivingOptions

Driving options.

vehicleOptions

Vehicle options.

routeListener

Route listener object.


requestRoutesSummaryWithPoints:drivingOptions:vehicleOptions:summaryHandler:

- (nonnull MMKDrivingSummarySession *)
    requestRoutesSummaryWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
                    drivingOptions:(nonnull MMKDrivingOptions *)drivingOptions
                    vehicleOptions:
                        (nonnull MMKDrivingVehicleOptions *)vehicleOptions
                    summaryHandler:
                        (nonnull MMKDrivingSummarySessionSummaryHandler)
                            summaryHandler;

Creates a route summary.

Parameters

points

Route points.

drivingOptions

Driving options.

vehicleOptions

Vehicle options.

summaryListener

Summary listener object.