fuelStation property

FuelStation? fuelStation
getter/setter pair

Fuel station details. It is available only if a place is a fuel station and contain fuel data. It is fully supported for offline search, provided that LayerConfigurationFeature.fuelStationAttributes is enabled in SDKOptions.layerConfiguration.

Note: Currently, for online search, this is a closed-alpha feature, so it is available only for selected customers. The field is always null for everyone that is not part of the closed-alpha group. Participants of the closed-alpha group can get access from HERE to use this feature. If the credentials are not enabled, a SearchError.forbidden will be propagated.

For online search, this feature is only available if it is explicitly enabled. To do that, call SearchEngine.set_custom_option() with arguments: name: "lookup.show" or "discover.show" or "autosuggest.show" or "browse.show" value: "fuel" To enable this feature for all queries, call SearchEngine.set_custom_option() for all: "lookup.show", "discover.show", "autosuggest.show" and "browse.show". To enable both truck_amenities and fuel_station features, set the value to "fuel,truck".

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.

Implementation

FuelStation? fuelStation;