TrafficFactory
public enum TrafficFactory
Creates TrafficService implementation
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a
TrafficServiceimplementation with the default TomTom traffic provider with the default configuration.Important
This is a Public Preview API. It may be changed or removed at any time.
Throws
An error if creation fails.
Declaration
Swift
public static func create( apiKey: String, store: NDSStore, locationEngine: LocationProvider ) throws -> TrafficParameters
apiKeyAPI key to access the TomTom Traffic Service.
storeDataStore which is based on an onboard NDS map.
locationEngineLocationProviderfor tracking position updates.Return Value
A
TrafficServiceimplementation with the TomTom traffic provider. -
Creates a
TrafficServiceimplementation with the TomTom TPEG traffic provider.Important
This is a Public Preview API. It may be changed or removed at any time.
Throws
An error if creation fails.
Declaration
Swift
public static func createWithTPEGProvider( store: NDSStore, configuration: TPEGTrafficClientConfiguration, locationEngine: LocationProvider ) throws -> TrafficParameters
storeDataStore which is based on an onboard NDS map.
configurationConfiguration for traffic engine.
locationEngineLocationProviderfor tracking position updates.Return Value
A
TrafficServiceimplementation with the TPEG provider.
TomTom SDK for iOS (TomTomSDKMapMatchingEngineHybrid 0.38.0-rc01 Docs)
TrafficFactory