TrafficService
public protocol TrafficService : AnyObject
Important
This is a Public Preview API. It may be changed or removed at any time.-
Important
This is a Public Preview API. It may be changed or removed at any time. Cloud traffic provider connectivity status.trueif connection has been established,falseotherwise.Declaration
Swift
var isConnected: Bool { get } -
Important
This is a Public Preview API. It may be changed or removed at any time. Number of traffic events currently known by the client.Declaration
Swift
var trafficEventCount: Int { get } -
Important
This is a Public Preview API. It may be changed or removed at any time. Updates the traffic client’sLocale.Note
Localeis used to select the desired locale when receiving multi-lingual data or when extracting textual location details from the map.Declaration
Swift
func updateLocale(_ locale: Locale)Parameters
localeThe new
Locale. -
trafficEvents(for:Asynchronous) Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
func trafficEvents(for boundingBox: BoundingBox) async -> Result<[TrafficEvent], Error>Parameters
boundingBoxThe area where for traffin events lookup
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
func trafficEvents(for boundingBox: BoundingBox) throws -> [TrafficEvent]Parameters
boundingBoxThe area where for traffin events lookup
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
func addObserver(_ observer: TrafficUpdateObserver) -
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
func removeObserver(_ observer: TrafficUpdateObserver)
TrafficService Protocol Reference