Class PlaceFilter
Class PlaceFilter
- java.lang.Object
-
- com.here.sdk.search.PlaceFilter
-
public final class PlaceFilter extends java.lang.ObjectThe filter options to specify a place. Consists of fuel, truck and EV options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlaceFilter.EvConstraints that are applicable on the places of category EV station.
-
Field Summary
Fields Modifier and Type Field Description PlaceFilter.EvevConstraints that are applicable on the places of category EV station.java.util.List<FuelType>fuelTypesThe list ofFuelTypeelements that should be used to find only theFuelStationsearch results that support all of them.TruckClasstruckClassShould be used to find only theFuelStationsearch results with minimum supportedTruckClass.java.util.List<TruckFuelType>truckFuelTypesThe list ofTruckFuelTypeelements that should be used to find only theFuelStationsearch results that support all of them.
-
Constructor Summary
Constructors Constructor Description PlaceFilter()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
fuelTypes
@NonNull public java.util.List<FuelType> fuelTypes
The list of
FuelTypeelements that should be used to find only theFuelStationsearch results that support all of them. This filter is available to use with theSearchEngineandOfflineSearchEngine(not available for all editions), howeverOfflineSearchEnginesupports it only forsearchByTextandsearchByCategorywith allowed fuel typesDIESEL,LPG,BIO_DIESEL,CNG,DIESEL_WITH_ADDITIVES,E10,E85,ETHANOL,ETHANOL_WITH_ADDITIVES,GASOLINE,HYDROGEN,LNG,MIDGRADE,PREMIUMandREGULAR.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.
-
truckFuelTypes
@NonNull public java.util.List<TruckFuelType> truckFuelTypes
The list of
TruckFuelTypeelements that should be used to find only theFuelStationsearch results that support all of them. Not supported forsuggestByTextinOfflineSearchEngine(not available in all editions).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.
-
truckClass
@Nullable public TruckClass truckClass
Should be used to find only the
FuelStationsearch results with minimum supportedTruckClass. This filter is only available to use with theSearchEngine. TheOfflineSearchEngine(not available for all editions) does not apply this filter.TruckClass.LIGHT_CLASSis not accepted in the filter. Otherwise will result inSearchError.INVALID_TRUCK_CLASS.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.
-
ev
@NonNull public PlaceFilter.Ev ev
Constraints that are applicable on the places of category EV station.
-
-