Warning

This feature is available in the Full MapKit SDK version

YMKMasstransitRouteMetadata

@interface YMKMasstransitRouteMetadata : NSObject <YMKBaseMetadata>

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

Summary

Class methods

+ (nonnull YMKMasstransitRouteMetadata *)routeMetadataWithWeight:(nonnull YMKMasstransitWeight *)weight
                                                        settings:(nullable YMKMasstransitRouteSettings *)settings
                                                      estimation:(nullable YMKMasstransitTravelEstimation *)estimation
                                                       wayPoints:(nonnull NSArray<YMKMasstransitWayPoint *> *)wayPoints
                                                         routeId:(nullable NSString *)routeId
                                                           flags:(nullable YMKMasstransitFlags *)flags
                                                     comfortTags:(nonnull NSArray<NSNumber *> *)comfortTags;

Properties

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

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

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

Arrival and departure time estimations for time-dependent routes

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

List of route waypoints

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

@property (nonatomic, readonly, nullable) YMKMasstransitFlags *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 YMKMasstransitRouteMetadata *)routeMetadataWithWeight:(nonnull YMKMasstransitWeight *)weight
                                                        settings:(nullable YMKMasstransitRouteSettings *)settings
                                                      estimation:(nullable YMKMasstransitTravelEstimation *)estimation
                                                       wayPoints:(nonnull NSArray<YMKMasstransitWayPoint *> *)wayPoints
                                                         routeId:(nullable NSString *)routeId
                                                           flags:(nullable YMKMasstransitFlags *)flags
                                                     comfortTags:(nonnull NSArray<NSNumber *> *)comfortTags;


Properties

weight

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

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


settings

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

Route settings that were used by the mass transit router.

Optional field, can be nil.


estimation

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

Arrival and departure time estimations for time-dependent routes.

Optional field, can be nil.


wayPoints

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

List of route waypoints. See YMKMasstransitWayPoint for details


routeId

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

Unique route id.

Optional field, can be nil.


flags

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

Flags which contains route properties

Optional field, can be nil.


comfortTags

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

Undocumented