Warning

This feature is available in the Full MapKit SDK version

YMKDrivingOptions

@interface YMKDrivingOptions : NSObject

Driving options.

Summary

Class methods

+ (nonnull YMKDrivingOptions *)drivingOptionsWithInitialAzimuth:(nullable NSNumber *)initialAzimuth
                                                    routesCount:(nullable NSNumber *)routesCount
                                                     avoidTolls:(nullable NSNumber *)avoidTolls
                                                   avoidUnpaved:(nullable NSNumber *)avoidUnpaved
                                            avoidPoorConditions:(nullable NSNumber *)avoidPoorConditions
                                                  departureTime:(nullable NSDate *)departureTime
                                             annotationLanguage:(nullable NSNumber *)annotationLanguage;

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) NSNumber *avoidTolls;
The 'avoidTolls' option instructs the router to return routes that avoid tolls when possible

@property (nonatomic, copy, readwrite, nullable) NSNumber *avoidUnpaved;
The 'avoidUnpaved' option instructs the router to return routes that avoid unpaved roads when possible

@property (nonatomic, copy, readwrite, nullable) NSNumber *avoidPoorConditions;
The 'avoidPoorConditions' option instructs the router to return routes that avoid roads in poor conditions when possible

@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

Class methods

drivingOptionsWithInitialAzimuth:routesCount:avoidTolls:avoidUnpaved:avoidPoorConditions:departureTime:annotationLanguage:

+ (nonnull YMKDrivingOptions *)drivingOptionsWithInitialAzimuth:(nullable NSNumber *)initialAzimuth
                                                    routesCount:(nullable NSNumber *)routesCount
                                                     avoidTolls:(nullable NSNumber *)avoidTolls
                                                   avoidUnpaved:(nullable NSNumber *)avoidUnpaved
                                            avoidPoorConditions:(nullable NSNumber *)avoidPoorConditions
                                                  departureTime:(nullable NSDate *)departureTime
                                             annotationLanguage:(nullable NSNumber *)annotationLanguage;


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.


avoidTolls

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

The 'avoidTolls' option instructs the router to return routes that avoid tolls when possible.

Optional field, can be nil.


avoidUnpaved

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

The 'avoidUnpaved' option instructs the router to return routes that avoid unpaved roads when possible.

Optional field, can be nil.


avoidPoorConditions

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

The 'avoidPoorConditions' option instructs the router to return routes that avoid roads in poor conditions when possible.

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.