TrafficFactory
public enum TrafficFactory
                Creates an instance of the TomTomSDKTraffic.Traffic interface.
Important
This is a Public Preview API. It may be changed or removed at any time.- 
                  
                  
Creates a
TomTomSDKTraffic.Trafficimplementation 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
TomTomSDKTraffic.Trafficimplementation with the TomTom traffic provider. - 
                  
                  
Creates a
TomTomSDKTraffic.Trafficimplementation 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
TomTomSDKTraffic.Trafficimplementation with the TPEG provider. 
        
 
          TomTom SDK for iOS (0.51.1)
        
          TrafficFactory