TrafficDataProviderFactory
public enum TrafficDataProviderFactory
Responsible for creating instances of MapDisplayDataProvider
for handling traffic tile requests.
Important: This is a Public Preview API. It may be changed or removed at any time.
-
Creates an instance of
MapDisplayDataProvider
that handles traffic tile requests.Declaration
Swift
public static func createTrafficDataProvider(trafficService: TomTomSDKTraffic.TrafficService) -> MapDisplayDataProvider
Parameters
trafficService
An instance of
TomTomSDKTraffic.TrafficService
for handling traffic event requests.Return Value
Returns an instance of
MapDisplayDataProvider
that handles traffic tile requests.