Class YMKDrivingRouter

Interface for the driving router.

Instance Methods

- requestRoutesSummaryWithPoints:drivingOptions:summaryHandler:

Creates a route summary.

- requestRoutesWithPoints:drivingOptions:routeHandler:

Builds a route.

- resume

Resumes all conditions in the request for routes received by this DrivingRouter.

- routeSerializer

Route serializer.

- setAnnotationLanguageWithAnnotationLanguage:

A method to set the annotation language.

- setOfflineRoutingEnabledWithOn:
- suspend

Suspends all conditions in the request for routes received by this DrivingRouter.

Method Detail

-requestRoutesSummaryWithPoints:drivingOptions:summaryHandler:

- (nonnull YMKDrivingSummarySession *)requestRoutesSummaryWithPoints:(nonnull NSArray< YMKRequestPoint * > *)points
                                                      drivingOptions:(nonnull YMKDrivingDrivingOptions *)drivingOptions
                                                      summaryHandler:(nonnull YMKDrivingSummarySessionSummaryHandler)summaryHandler 

Creates a route summary.

Parameters:
points

Route points.

drivingOptions

Driving options.

summaryListener

Route listener object.

-requestRoutesWithPoints:drivingOptions:routeHandler:

- (nonnull YMKDrivingSession *)requestRoutesWithPoints:(nonnull NSArray< YMKRequestPoint * > *)points
                                        drivingOptions:(nonnull YMKDrivingDrivingOptions *)drivingOptions
                                          routeHandler:(nonnull YMKDrivingSessionRouteHandler)routeHandler 

Builds a route.

Parameters:
points

Route points.

drivingOptions

Driving options.

routeListener

Route listener object.

-resume

- (void)resume

Resumes all conditions in the request for routes received by this DrivingRouter.

This is the default state.

-routeSerializer

- (nonnull YMKDrivingRouteSerializer *)routeSerializer

Route serializer.

-setAnnotationLanguageWithAnnotationLanguage:

- (void)setAnnotationLanguageWithAnnotationLanguage:(YMKDrivingAnnotationLanguage)annotationLanguage 

A method to set the annotation language.

Parameters:
annotationLanguage

The annotation language.

-setOfflineRoutingEnabledWithOn:

- (void)setOfflineRoutingEnabledWithOn:(BOOL)on 
Attention.

This feature is not available in the free MapKit version.

Enables or disables offline routing. Disabled by default.

-suspend

- (void)suspend

Suspends all conditions in the request for routes received by this DrivingRouter.