Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitRouteMetadata

@interface MMKMasstransitRouteMetadata : NSObject <MMKBaseMetadata>

Contains information associated with a route constructed by the mass transit router.

Summary

Class methods

+ (nonnull MMKMasstransitRouteMetadata *)routeMetadataWithWeight:(nonnull MMKMasstransitWeight *)weight
                                                        settings:(nullable MMKMasstransitRouteSettings *)settings
                                                      estimation:(nullable MMKMasstransitTravelEstimation *)estimation
                                                       wayPoints:(nonnull NSArray<MMKMasstransitWayPoint *> *)wayPoints
                                                         routeId:(nullable NSString *)routeId
                                                           flags:(nullable MMKMasstransitFlags *)flags
                                                     comfortTags:(nonnull NSArray<NSNumber *> *)comfortTags;

Properties

@property (nonatomic, readonly, nonnull) MMKMasstransitWeight *weight;
Contains the route time, distance of the walking part, and the number of transfers

@property (nonatomic, readonly, nullable) MMKMasstransitRouteSettings *settings;
Route settings that were used by the mass transit router

@property (nonatomic, readonly, nullable)
    MMKMasstransitTravelEstimation *estimation;

Arrival and departure time estimations for time-dependent routes

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitWayPoint *> *wayPoints;

List of route waypoints

@property (nonatomic, readonly, nullable) NSString *routeId;
Unique route id

@property (nonatomic, readonly, nullable) MMKMasstransitFlags *flags;
Flags which contains route properties

Optional field, can be nil

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *comfortTags;
Undocumented

Class methods

routeMetadataWithWeight:settings:estimation:wayPoints:routeId:flags:comfortTags:

+ (nonnull MMKMasstransitRouteMetadata *)routeMetadataWithWeight:(nonnull MMKMasstransitWeight *)weight
                                                        settings:(nullable MMKMasstransitRouteSettings *)settings
                                                      estimation:(nullable MMKMasstransitTravelEstimation *)estimation
                                                       wayPoints:(nonnull NSArray<MMKMasstransitWayPoint *> *)wayPoints
                                                         routeId:(nullable NSString *)routeId
                                                           flags:(nullable MMKMasstransitFlags *)flags
                                                     comfortTags:(nonnull NSArray<NSNumber *> *)comfortTags;


Properties

weight

@property (nonatomic, readonly, nonnull) MMKMasstransitWeight *weight;

Contains the route time, distance of the walking part, and the number of transfers.


settings

@property (nonatomic, readonly, nullable) MMKMasstransitRouteSettings *settings;

Route settings that were used by the mass transit router.

Optional field, can be nil.


estimation

@property (nonatomic, readonly, nullable)
    MMKMasstransitTravelEstimation *estimation;

Arrival and departure time estimations for time-dependent routes.

Optional field, can be nil.


wayPoints

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitWayPoint *> *wayPoints;

List of route waypoints. See MMKMasstransitWayPoint for details


routeId

@property (nonatomic, readonly, nullable) NSString *routeId;

Unique route id.

Optional field, can be nil.


flags

@property (nonatomic, readonly, nullable) MMKMasstransitFlags *flags;

Flags which contains route properties

Optional field, can be nil.


comfortTags

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *comfortTags;

Undocumented