PublicTransportInfo | iOS SDK | Urbi 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.

Names of the used public transport routes.

Car numbers in that boarding recommended.
If a vehicle consists of a single car or one can board any car, this list will be empty.

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.