FuelPriceProvider
public protocol FuelPriceProvider
Defines Fuel Price API that complement basic search.
-
The Fuel Price endpoint provides information about fuel prices at a gas station or recharge cost at a charging station.
Declaration
Swift
func requestFuelPrices( options: FuelPriceOptions, completion: @escaping (Result<FuelPriceResponse, Error>) -> () )Parameters
optionsInformation related to fuel prices.
completionThe completion closure is called after the response to the request has been processed. If no errors occurred,
FuelPriceResponsecontains an array fuel price data objects.
TomTom SDK for iOS (0.40.0)
FuelPriceProvider