TriggerType

public enum TriggerType : CaseIterable, Hashable
extension TriggerType: Comparable

The type of an individual trigger that appears on the route.

The trigger may be differentiated by its distance to the maneuver point. Although, this type doesn’t provide any distance information, it describes a triggering point by its location on the route. For example:

  • follow trigger is in range 30...20 km from the maneuver point.
  • faraway trigger is in range 12...10 km from the maneuver point.
  • early trigger is in range 5...4 km from the maneuver point.
  • main trigger is in range 1.2...1 km from the maneuver point.
  • confirmation trigger is in range 50...20 meters from the maneuver point.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
  • Trigger to be used at any distance greater than the distance associated with the faraway. It does not refer to the next maneuver directly, but rather communicates that for the long stretch ahead there are no more instructions.

    Declaration

    Swift

    case follow
  • Trigger for a maneuver that is far away. It informs the driver that there is an upcoming maneuver somewhere that is far away from their current location.

    Declaration

    Swift

    case faraway
  • Trigger is to be used closer to maneuver point. It informs the driver to prepare for the upcoming maneuver and plan their path. (for example start changing lanes).

    Declaration

    Swift

    case early
  • Trigger to be used very close to the maneuver point.

    Declaration

    Swift

    case main
  • Trigger to be used at the maneuver point itself.

    Declaration

    Swift

    case confirmation
  • Returns a Boolean value indicating whether two types are equal.

    Declaration

    Swift

    public static func == (lhs: TriggerType, rhs: TriggerType) -> Bool

    Parameters

    lhs

    A value on the left hand side.

    rhs

    A value on the right hand side.

    Return Value

    Comparison result.