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 |
Properties
@property (nonatomic, readonly, nonnull) NSString *id; |
@property (nonatomic, readonly, nonnull) NSString *name; |
@property (nonatomic, readonly, nonnull) NSArray<NSString *> *vehicleTypes; |
@property (nonatomic, readonly, nullable) MMKMasstransitLineStyle *style; |
@property (nonatomic, readonly) BOOL isNight; |
@property (nonatomic, readonly, nullable) NSString *uri; |
@property (nonatomic, readonly, nullable) NSString *shortName; |
@property (nonatomic, readonly, nullable) NSString *transportSystemId; |
Class methods
lineWithId:name:vehicleTypes:style:isNight:uri:shortName:transportSystemId:
+ (nonnull MMKMasstransitLine *)lineWithId:(nonnull NSString *)id |
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.