FuelStation
public struct FuelStation : Hashable
Contains information about a specific fuel station.
Use PlaceCategory.businessAndServicesPetrolGasolineStation to find fuel stations.
In the Details of a Place result you can find the associated fuel station information,
if any.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
The list of car fuel types associated with the fuel station. The list can be empty when no generic fuels are offered or when the information is unknown.
Declaration
Swift
public var fuels: [GenericFuel] -
The list of truck fuel types associated with the fuel station. The list can be empty when no truck fuels are offered or when the information is unknown.
Declaration
Swift
public var truckFuels: [TruckFuel] -
Indicates if paying at the pump is supported or not.
nilmeans information is unknown.Declaration
Swift
public var payAtThePump: Bool? -
Indicates if high volume pumps are available or not.
nilmeans information is unknown.Declaration
Swift
public var highVolumePumps: Bool? -
Creates a new instance.
Declaration
Swift
public init(fuels: [GenericFuel] = [], truckFuels: [TruckFuel] = [], payAtThePump: Bool? = nil, highVolumePumps: Bool? = nil)