TransportType

public enum TransportType: Int, CustomStringConvertible

A TransportType specifies the mode of transportation used for part of a route.

  • The step does not have a particular transport type associated with it.

    This transport type is used as a workaround for bridging to Objective-C which does not support nullable enumeration-typed values.

    Declaration

    Swift

    case none
  • The route requires the user to drive or ride a car, truck, or motorcycle.

    This is the usual transport type when the profileIdentifier is MBDirectionsProfileIdentifierAutomobile or MBDirectionsProfileIdentifierAutomobileAvoidingTraffic.

    Declaration

    Swift

    case automobile // automobile
  • The route requires the user to board a ferry.

    The user should verify that the ferry is in operation. For driving and cycling directions, the user should also verify that his or her vehicle is permitted onboard the ferry.

    Declaration

    Swift

    case ferry // automobile, walking, cycling
  • The route requires the user to cross a movable bridge.

    The user may need to wait for the movable bridge to become passable before continuing.

    Declaration

    Swift

    case movableBridge // automobile, cycling
  • The route becomes impassable at this point.

    You should not encounter this transport type under normal circumstances.

    Declaration

    Swift

    case inaccessible // automobile, walking, cycling
  • The route requires the user to walk.

    This is the usual transport type when the profileIdentifier is MBDirectionsProfileIdentifierWalking. For cycling directions, this value indicates that the user is expected to dismount.

    Declaration

    Swift

    case walking // walking, cycling
  • The route requires the user to ride a bicycle.

    This is the usual transport type when the profileIdentifier is MBDirectionsProfileIdentifierCycling.

    Declaration

    Swift

    case cycling // cycling
  • The route requires the user to board a train.

    The user should consult the train’s timetable. For cycling directions, the user should also verify that bicycles are permitted onboard the train.

    Declaration

    Swift

    case train // cycling