ElectronicHorizonUpdate

public struct ElectronicHorizonUpdate : Hashable

A struct representing a full update delivered via ElectronicHorizonDelegate notifications.

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

  • The full electronic horizon recomputed for the current vehicle state. May be nil if there is no update.

    Contains the complete set of preferred paths.

    Declaration

    Swift

    public var electronicHorizon: ElectronicHorizon?
  • The difference between the previously emitted horizon and the newly computed one. Contains added and removed segments. May be nil if there is no update.

    Declaration

    Swift

    public var segmentChanges: ElectronicHorizonSegmentChanges?
  • The vehicle’s updated position relative to the electronic horizon. Always present. If no electronic_horizon is available, the position refers to the most recently known horizon.

    Declaration

    Swift

    public var position: ElectronicHorizonPosition
  • Creates a new instance.

    Offline availability: This property is available online and offline.

    • Parameters

      • electronicHorizon: The full electronic horizon recomputed for the current vehicle state. May be nil if there is no update.

      Contains the complete set of preferred paths.

      • segmentChanges: The difference between the previously emitted horizon and the newly computed one. Contains added and removed segments. May be nil if there is no update.
      • position: The vehicle’s updated position relative to the electronic horizon. Always present. If no electronic_horizon is available, the position refers to the most recently known horizon.

    Declaration

    Swift

    public init(electronicHorizon: ElectronicHorizon? = nil, segmentChanges: ElectronicHorizonSegmentChanges? = nil, position: ElectronicHorizonPosition)