Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitLine

class MMKMasstransitLine : NSObject, MMKBaseMetadata

Describes a public transport line.

Summary

Class methods

 init(id: String,
    name: String,
 vehicleTypes: [String],
   style: MMKMasstransitLineStyle?,
 isNight: Bool,
     uri: String?,
 shortName: String?,
 transportSystemId: String?)

Properties

var id: String { get }
Line ID

var name: String { get }
Line name

var vehicleTypes: [String] { get }
List of line types

var styleMMKMasstransitLineStyle? { get }
Line style; see MMKMasstransitLineStyle

var isNight: Bool { get }
True if the line operates only at night

var uri: String? { get }
URI for a line

var shortName: String? { get }
Subway short line name

var transportSystemId: String? { get }
Subway transport system ID

Class methods

init(id:name:vehicleTypes:style:isNight:uri:shortName:transportSystemId:)

 init(id: String,
    name: String,
 vehicleTypes: [String],
   style: MMKMasstransitLineStyle?,
 isNight: Bool,
     uri: String?,
 shortName: String?,
 transportSystemId: String?)


Properties

id

var id: String { get }

Line ID.


name

var name: String { get }

Line name.


vehicleTypes

var vehicleTypes: [String] { get }

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


style

var style: MMKMasstransitLineStyle? { get }

Line style; see MMKMasstransitLineStyle.

Optional field, can be nil.


isNight

var isNight: Bool { get }

True if the line operates only at night.


uri

var uri: String? { get }

URI for a line.

Optional field, can be nil.


shortName

var shortName: String? { get }

Subway short line name.

Optional field, can be nil.


transportSystemId

var transportSystemId: String? { get }

Subway transport system ID.

Optional field, can be nil.