Class PlaceFilter

java.lang.Object
com.here.sdk.search.PlaceFilter

public final class PlaceFilter extends Object

The filter options to specify a place. Consists of fuel, truck and EV options.

  • Field Details

    • fuelTypes

      @NonNull public List<FuelType> fuelTypes

      The list of FuelType elements that should be used to find only the FuelStation search results that support all of them. This filter is available to use with the SearchEngine and OfflineSearchEngine (only available for the Navigate license), however OfflineSearchEngine supports it only for searchByText and searchByCategory with allowed fuel types DIESEL, LPG, BIO_DIESEL, CNG, DIESEL_WITH_ADDITIVES, E10, E85, ETHANOL, ETHANOL_WITH_ADDITIVES, GASOLINE, HYDROGEN, LNG, MIDGRADE, PREMIUM and REGULAR.

      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 List<TruckFuelType> truckFuelTypes

      The list of TruckFuelType elements that should be used to find only the FuelStation search results that support all of them. Not supported for suggestByText in OfflineSearchEngine (only available for the Navigate license).

      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 FuelStation search results with minimum supported TruckClass. This filter is only available to use with the SearchEngine. The OfflineSearchEngine (only available for the Navigate license) does not apply this filter. TruckClass.LIGHT_CLASS is not accepted in the filter. Otherwise will result in SearchError.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.

  • Constructor Details

    • PlaceFilter

      public PlaceFilter()

      Creates a new instance.

  • Method Details