ElectronicHorizonDataLoaderOptions

public struct ElectronicHorizonDataLoaderOptions : Hashable

Provides options to configure ElectronicHorizonDataLoader.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • Specifies which data is loaded for electronic horizon segments and corridor segments. A corridor listener requires the polyline option to be enabled.

    Declaration

    Swift

    public let segmentDataLoaderOptions: SegmentDataLoaderOptions
  • The maximum number of segment-data entries kept in the in-memory LRU cache.

    Declaration

    Swift

    public let segmentDataCacheSize: Int32
  • The distance in meters from the most-preferred path to each side of the corridor.

    Declaration

    Swift

    public let corridorHalfWidthInMeters: Int32
  • The maximum distance in meters loaded ahead of the current position on the most-preferred path. The corridor can be shorter if the electronic horizon ends first. A value of 0 disables corridor fetching.

    Declaration

    Swift

    public let corridorLengthInMeters: Int32
  • Creates a new instance.

    Offline availability: This property is available online and offline.

    Declaration

    Swift

    public init(segmentDataLoaderOptions: SegmentDataLoaderOptions, segmentDataCacheSize: Int32, corridorHalfWidthInMeters: Int32, corridorLengthInMeters: Int32)