Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitLine

@interface MMKMasstransitLine : NSObject <MMKBaseMetadata>

Describes a public transport line.

Summary

Class methods

+ (nonnull MMKMasstransitLine *)lineWithId:(nonnull NSString *)id
                                      name:(nonnull NSString *)name
                              vehicleTypes:(nonnull NSArray<NSString *> *)vehicleTypes
                                     style:(nullable MMKMasstransitLineStyle *)style
                                   isNight:( BOOL)isNight
                                       uri:(nullable NSString *)uri
                                 shortName:(nullable NSString *)shortName
                         transportSystemId:(nullable NSString *)transportSystemId;

Properties

@property (nonatomic, readonly, nonnull) NSString *id;
Line ID

@property (nonatomic, readonly, nonnull) NSString *name;
Line name

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *vehicleTypes;
List of line types

@property (nonatomic, readonly, nullable) MMKMasstransitLineStyle *style;
Line style; see MMKMasstransitLineStyle

@property (nonatomic, readonly) BOOL isNight;
True if the line operates only at night

@property (nonatomic, readonly, nullable) NSString *uri;
URI for a line

@property (nonatomic, readonly, nullable) NSString *shortName;
Subway short line name

@property (nonatomic, readonly, nullable) NSString *transportSystemId;
Subway transport system ID

Class methods

lineWithId:name:vehicleTypes:style:isNight:uri:shortName:transportSystemId:

+ (nonnull MMKMasstransitLine *)lineWithId:(nonnull NSString *)id
                                      name:(nonnull NSString *)name
                              vehicleTypes:(nonnull NSArray<NSString *> *)vehicleTypes
                                     style:(nullable MMKMasstransitLineStyle *)style
                                   isNight:( BOOL)isNight
                                       uri:(nullable NSString *)uri
                                 shortName:(nullable NSString *)shortName
                         transportSystemId:(nullable NSString *)transportSystemId;


Properties

id

@property (nonatomic, readonly, nonnull) NSString *id;

Line ID.


name

@property (nonatomic, readonly, nonnull) NSString *name;

Line name.


vehicleTypes

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *vehicleTypes;

List of line types. Starts from the most detailed, ends with the most general.


style

@property (nonatomic, readonly, nullable) MMKMasstransitLineStyle *style;

Line style; see MMKMasstransitLineStyle.

Optional field, can be nil.


isNight

@property (nonatomic, readonly) BOOL isNight;

True if the line operates only at night.


uri

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

URI for a line.

Optional field, can be nil.


shortName

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

Subway short line name.

Optional field, can be nil.


transportSystemId

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

Subway transport system ID.

Optional field, can be nil.