PublicTransportInfo | iOS SDK | 2GIS Documentation
iOS SDK

PublicTransportInfo

Description of the means of public transportation.

public init(
    type: PublicTransportType = PublicTransportType.bus,
    names: [String],
    suggestedCarNumbers: [UInt32],
    boardingSuggest: String,
    color: UInt32?,
    routeLogo: String
)
Parameters
type
names
suggestedCarNumbers
boardingSuggest
color
routeLogo
Properties

Type of public transport vehicle.

The names of the used public transport routes.

Carriage numbers in which boarding is recommended.

Text description of the cars in which boarding is recommended.

Argb representation of the color associated with a given public transport mode, such as the color of a subway line. If there is no information about the color, the field will be nil.

Icon identifier for route stops. An empty string if no information is available. Technical field.