TransportMode

public enum TransportMode : UInt32, CaseIterable, Codable

Specifies the mode of transport used for route calculalation.

  • car

    The calculated route is optimized for cars.

    Declaration

    Swift

    case car
  • The calculated route is optimized for trucks. This mode considers truck restrictions and uses truck specific speed assumptions when calculating the route.

    Declaration

    Swift

    case truck
  • The calculated route is optimized for pedestrians. As one effect, maneuvers will be optimized for walking, i.e. segments will consider actions relevant for pedestrians and maneuver instructions will contain texts suitable for a walking person. This mode disregards any traffic information.

    Declaration

    Swift

    case pedestrian
  • The calculated route is optimized for scooters.

    Declaration

    Swift

    case scooter
  • Route calculation for bicycles.

    Declaration

    Swift

    case bicycle
  • The calculated route is optimized for public transit. Note that this transport mode is available only for some versions of the HERE SDK. Check SDKBuildInformation and consult your HERE representative if necessary.

    Declaration

    Swift

    case publicTransit
  • The taxi transport mode takes into account tax restricted streets as well as streets reserved for exclusive taxi access. Note that roads that are restricted or reserved for taxis are avoided, unless a waypoint is set on such a road - as this may indicate to pick-up or to drop-off a passenger.

    Note: This is a beta release of this transport mode, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases or even become unsupported, without a deprecation process.

    Declaration

    Swift

    case taxi
  • bus

    Route calculation for buses. Denotes those vehicles operated by public transport provider. This transport mode has the access to the bus-only lane/road.

    Declaration

    Swift

    case bus
  • Route calculation for private buses. Denotes those vehicles operated by private transport company. This transport mode does not have the access to the bus-only lane/road.

    Declaration

    Swift

    case privateBus