TPEGTrafficClientConfiguration

public struct TPEGTrafficClientConfiguration

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

Public

  • Important

    This is a Public Preview API. It may be changed or removed at any time. API key used to create a Perseus session.

    Declaration

    Swift

    public let apiKey: String
  • Important

    This is a Public Preview API. It may be changed or removed at any time. The resource/page on the server requested in the InitSession request.

    Declaration

    Swift

    public let initSessionUrl: URL
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Time to wait before sending the next GetMessage request (defaults to 60s).

    Declaration

    Swift

    public let updateFrequency: Measurement<UnitDuration>
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Inner Radius (defaults to 10km).

    Declaration

    Swift

    public let innerRadius: Measurement<UnitLength>
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Outer Radius (defaults to 150km).

    Declaration

    Swift

    public let outerRadius: Measurement<UnitLength>
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Maximum number of messages the client can handle at a time (defaults to 1000).

    Declaration

    Swift

    public let maxNumberOfEvents: Int
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Enable or disable the traffic cache feature. If enabled, onboard traffic information will be persisted between sessions, providing faster access to road closure information after starting the app. Defaults to false (disabled).

    Declaration

    Swift

    public let trafficCacheEnabled: Bool
  • Important

    This is a Public Preview API. It may be changed or removed at any time. The path to the directory containing files for file feed communication. If set, the onboard traffic subsystem will not communicate with an external server and instead generates responses from files matching the given pattern based on alphanumerical order. Sub-directories are not included. This setting is optional.

    Declaration

    Swift

    public let fileFeedDirectory: String?
  • Important

    This is a Public Preview API. It may be changed or removed at any time. The pattern of files to be used by file feed communication. Only files for which the name matches the given regular expression are considered. This setting is optional.

    Declaration

    Swift

    public let fileFeedPattern: String?
  • Important

    This is a Public Preview API. It may be changed or removed at any time. The path to the directory in which dumps will be stored. If this setting is not provided, dumping is disabled.

    Declaration

    Swift

    public let webRequestDumpDirectory: String?