Warning

This feature is available in the Full MapKit SDK version

MMKTransitOptions

@interface MMKTransitOptions : NSObject

User-defined options, like time options and filter options.

Summary

Class methods

+ (nonnull MMKTransitOptions *)transitOptionsWithAvoid:( MMKFilterVehicleTypes)avoid
                                           timeOptions:(nonnull MMKTimeOptions *)timeOptions;

Instance methods

- (nonnull MMKTransitOptions *)init;

Properties

@property (nonatomic, readonly) MMKFilterVehicleTypes avoid;
Transport types that the router will avoid

@property (nonatomic, readonly, nonnull) MMKTimeOptions *timeOptions;
Desired departure/arrival time settings

Class methods

transitOptionsWithAvoid:timeOptions:

+ (nonnull MMKTransitOptions *)transitOptionsWithAvoid:( MMKFilterVehicleTypes)avoid
                                           timeOptions:(nonnull MMKTimeOptions *)timeOptions;


Instance methods

init

- (nonnull MMKTransitOptions *)init;


Properties

avoid

@property (nonatomic, readonly) MMKFilterVehicleTypes avoid;

Transport types that the router will avoid. The value should be one of MMKFilterVehicleTypes, or their bitwise 'OR' combination.


timeOptions

@property (nonatomic, readonly, nonnull) MMKTimeOptions *timeOptions;

Desired departure/arrival time settings. Empty MMKTimeOptions for requests that are not time-dependent.