MMKDrivingOptions

Warning

This feature is available in the Full MapKit SDK version

@interface MMKDrivingOptions : NSObject

Driving options.

Summary

Class methods

+ (nonnull MMKDrivingOptions *)drivingOptionsWithInitialAzimuth:(nullable NSNumber *)initialAzimuth
                                                    routesCount:(nullable NSNumber *)routesCount
                                                  departureTime:(nullable NSDate *)departureTime
                                             annotationLanguage:(nullable NSNumber *)annotationLanguage
                                                 avoidanceFlags:(nullable MMKDrivingAvoidanceFlags *)avoidanceFlags;

Properties

@property (nonatomic, copy, readwrite, nullable) NSNumber *initialAzimuth;
Starting location azimuth

@property (nonatomic, copy, readwrite, nullable) NSNumber *routesCount;
The number of alternatives

@property (nonatomic, copy, readwrite, nullable) NSDate *departureTime;
Optional field, can be nil

@property (nonatomic, copy, readwrite, nullable) NSNumber *annotationLanguage;
A method to set the annotation language

@property (nonatomic, strong, readwrite, nullable)
    MMKDrivingAvoidanceFlags *avoidanceFlags;

The 'avoidanceFlags' instruct the router to return routes that avoid roads with the specified properties when possible

Class methods

drivingOptionsWithInitialAzimuth:routesCount:departureTime:annotationLanguage:avoidanceFlags:

+ (nonnull MMKDrivingOptions *)drivingOptionsWithInitialAzimuth:(nullable NSNumber *)initialAzimuth
                                                    routesCount:(nullable NSNumber *)routesCount
                                                  departureTime:(nullable NSDate *)departureTime
                                             annotationLanguage:(nullable NSNumber *)annotationLanguage
                                                 avoidanceFlags:(nullable MMKDrivingAvoidanceFlags *)avoidanceFlags;


Properties

initialAzimuth

@property (nonatomic, copy, readwrite, nullable) NSNumber *initialAzimuth;

Starting location azimuth.

Optional field, can be nil.


routesCount

@property (nonatomic, copy, readwrite, nullable) NSNumber *routesCount;

The number of alternatives.

Optional field, can be nil.


departureTime

@property (nonatomic, copy, readwrite, nullable) NSDate *departureTime;

Optional field, can be nil.


annotationLanguage

@property (nonatomic, copy, readwrite, nullable) NSNumber *annotationLanguage;

A method to set the annotation language. lang The annotation language.

Optional field, can be nil.


avoidanceFlags

@property (nonatomic, strong, readwrite, nullable)
    MMKDrivingAvoidanceFlags *avoidanceFlags;

The 'avoidanceFlags' instruct the router to return routes that avoid roads with the specified properties when possible.

Optional field, can be nil.