Class EVPoiFilterCriteriaBuilder
Builder for EV POI filtering criteria.
For all list-based filter methods, an empty list means accept all.
Filtering takes effect only when the corresponding EV charging station POI categories are enabled.
- Charging station for cars: 700-7600-0322 (required when filtering for cars)
- Charging station for trucks: 700-7600-0323 (required when filtering for trucks)
POI category visibility can be controlled using
MapContentSettings.setPoiCategoriesVisibility.
Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an opaque POI criteria object.withChargingOnSite(boolean value) Matches POIs where either general public or just customers are offered charging.withConnectorTypes(List<String> ids) Accepted connector type strings.Required current type (AC or DC).Accepted electric vehicle types.withMinCurrent(int amperes) Minimum current required on any matching port in amperes.withMinPower(int kilowatts) Minimum charging power required on any matching port in kilowatts.withMinVoltage(int volts) Minimum voltage required on any matching port in volts.withReservable(boolean value) Matches POIs whose reservable flag equals this value.withSubscription(boolean value) Matches POIs whose subscription flag equals this value.
-
Constructor Details
-
EVPoiFilterCriteriaBuilder
public EVPoiFilterCriteriaBuilder()Creates a new builder.
-
-
Method Details
-
withChargingOnSite
Matches POIs where either general public or just customers are offered charging.
- Parameters:
value-Desired flag value. Use
Truefor general public allowence orFalsefor customers only.- Returns:
The builder instance.
-
withConnectorTypes
Accepted connector type strings. Supported types are listed here:
EVChargingConnectorType.- Parameters:
ids-Accepted connector type identifiers.
- Returns:
The builder instance.
-
withElectricCurrentType
@NonNull public EVPoiFilterCriteriaBuilder withElectricCurrentType(@NonNull ElectricCurrentType type) Required current type (AC or DC).
- Parameters:
type-Desired current type.
- Returns:
The builder instance.
-
withElectricVehicleTypes
@NonNull public EVPoiFilterCriteriaBuilder withElectricVehicleTypes(@NonNull List<ElectricVehicleType> types) Accepted electric vehicle types. Empty list is equivalent to all supported electric vehicle types.
- Parameters:
types-Accepted vehicle types.
- Returns:
The builder instance.
-
withMinCurrent
Minimum current required on any matching port in amperes.
- Parameters:
amperes-Minimum required connector current in amperes.
- Returns:
The builder instance.
-
withMinPower
Minimum charging power required on any matching port in kilowatts.
- Parameters:
kilowatts-Minimum required connector power in kilowatts.
- Returns:
The builder instance.
-
withMinVoltage
Minimum voltage required on any matching port in volts.
- Parameters:
volts-Minimum required connector voltage in volts.
- Returns:
The builder instance.
-
withReservable
Matches POIs whose reservable flag equals this value.
- Parameters:
value-Desired reservable flag value.
- Returns:
The builder instance.
-
withSubscription
Matches POIs whose subscription flag equals this value.
- Parameters:
value-Desired subscription flag value.
- Returns:
The builder instance.
-
build
Builds an opaque POI criteria object.
- Returns:
A POI criteria instance that can be passed to map content settings.
-