OnlineDynamicDataProviderFactory
public enum OnlineDynamicDataProviderFactory
Factory for accessing the implementations for the Dynamic Data APIs.
-
Factory method for creating an instance of
FuelPriceProvider.Declaration
Swift
public static func createFuelPriceProvider(apiKey: String) -> FuelPriceProviderParameters
apiKeyAPI key for requesting dynamic data.
Return Value
An instance of
FuelPriceProviderconfigured with the specified apiKey. -
Factory method for creating an instance of
FuelPriceProvider.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func createFuelPriceProvider(apiKey: String, customAPIURL: URL? = nil) -> FuelPriceProviderParameters
apiKeyAPI key for requesting dynamic data.
customAPIURLCustom base URL for online APIs. Defaults to nil and TomTom online API base URL will be used.
Return Value
An instance of
FuelPriceProviderconfigured with the specified apiKey. -
Factory method for creating an instance of
EVChargingAvailabilityProvider.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func createEVChargingAvailabilityProvider( apiKey: String, customAPIURL: URL? = nil ) -> EVChargingAvailabilityProviderParameters
apiKeyAPI key for requesting dynamic data.
customAPIURLCustom base URL for online APIs. Defaults to nil and TomTom online API base URL will be used.
Return Value
An instance of
EVChargingAvailabilityProviderconfigured with the specified apiKey. -
Factory method for creating an instance of
ParkingDetailProvider.Declaration
Swift
public static func createParkingDetailProvider(apiKey: String) -> ParkingDetailProviderParameters
apiKeyAPI key for requesting dynamic data.
Return Value
An instance of
ParkingDetailProviderconfigured with the specified apiKey. -
Factory method for creating an instance of
ParkingDetailProvider.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func createParkingDetailProvider(apiKey: String, customAPIURL: URL? = nil) -> ParkingDetailProviderParameters
apiKeyAPI key for requesting dynamic data.
customAPIURLCustom base URL for online APIs. Defaults to nil and TomTom online API base URL will be used.
Return Value
An instance of
ParkingDetailProviderconfigured with the specified apiKey.
TomTom SDK for iOS (0.73.0-rc04)
OnlineDynamicDataProviderFactory