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) -> FuelPriceProvider
Parameters
apiKey
API key for requesting dynamic data.
Return Value
An instance of
FuelPriceProvider
configured 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) -> FuelPriceProvider
Parameters
apiKey
API key for requesting dynamic data.
customAPIURL
Base URL for online APIs (e.g., “https://api.tomtom.com/search/2”). Defaults to nil and TomTom online API base URL will be used.
Return Value
An instance of
FuelPriceProvider
configured 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 ) -> EVChargingAvailabilityProvider
Parameters
apiKey
API key for requesting dynamic data.
customAPIURL
Base URL for online APIs (e.g., “https://api.tomtom.com/search/2”). Defaults to nil and TomTom online API base URL will be used.
Return Value
An instance of
EVChargingAvailabilityProvider
configured with the specified apiKey. -
Factory method for creating an instance of
ParkingDetailProvider
.Declaration
Swift
public static func createParkingDetailProvider(apiKey: String) -> ParkingDetailProvider
Parameters
apiKey
API key for requesting dynamic data.
Return Value
An instance of
ParkingDetailProvider
configured 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) -> ParkingDetailProvider
Parameters
apiKey
API key for requesting dynamic data.
customAPIURL
Base URL for online APIs (e.g., “https://api.tomtom.com/search/2”). Defaults to nil and TomTom online API base URL will be used.
Return Value
An instance of
ParkingDetailProvider
configured with the specified apiKey.