EvSearchOptions

constructor(geoBias: GeoPoint, radius: Distance = DEFAULT_RADIUS, @IntRange(from = 1, to = 100) limit: Int = DEFAULT_LIMIT, connectors: List<ConnectorType> = emptyList(), status: Status? = null, minPower: Power? = null, maxPower: Power? = null, accessTypes: List<AccessType> = emptyList(), locale: Locale = Locale.getDefault())

Parameters

geoBias

The coordinate where the EV results are biased.

radius

The maximum distance from the specified geoBias for which the EV Search delivers results. Defaults to DEFAULT_RADIUS. Minimum radius accepted is MIN_RADIUS, while maximum radius accepted is MAX_RADIUS.

limit

The maximum number of EvSearchResults that will be returned. Defaults to DEFAULT_LIMIT. Minimum limit accepted is MIN_LIMIT, while maximum limit accepted is MAX_LIMIT_NEARBY.

connectors

A list of ConnectorTypes used to restrict the results to the stations that have at least one connector of the specified type.

status

The Status to filter out ChargingPoints inside of a ChargingStation. Note: If the status data is available, this parameter will filter out the charging stations based on the status per given charging point. ChargingPoints for which the status data is not available will be included in the search results.

minPower

A power rate, used to restrict the results to ChargingStations with at least one connector that has a power greater or equal to this minimum power.

maxPower

A power rate, used to restrict the results to ChargingStations with at least one connector that has a power lesser or equal to this maximum power.

accessTypes

A list of AccessTypes used to restrict the results to the charging stations that have at least one of the specified access types. This does not guarantee that all charging parks will have the same accessTypes.

locale

The language in which search results should be returned.


constructor(route: List<GeoPoint>, maxDetourDuration: Duration = MAX_DETOUR_UPPER_LIMIT, @IntRange(from = 1, to = 20) limit: Int = DEFAULT_LIMIT, connectors: List<ConnectorType> = emptyList(), status: Status? = null, minPower: Power? = null, maxPower: Power? = null, accessTypes: List<AccessType> = emptyList(), locale: Locale = Locale.getDefault())

Initializes the EV Search options along a specified route with additional parameters. This constructor is useful for defining searches that are constrained along a route, such as finding points of interest along the remaining part of a journey.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

route

The route along which the search is constrained. Must contain at least two points.

maxDetourDuration

The maximum detour duration from the route.

limit

The maximum number of EvSearchResults that will be returned. Defaults to DEFAULT_LIMIT. Minimum limit accepted is MIN_LIMIT, while maximum limit accepted is MAX_LIMIT_ALONG_ROUTE.

connectors

A list of ConnectorTypes used to restrict the results to the stations that have at least one connector of the specified type.

status

The Status to filter out ChargingPoints inside of a ChargingStation. Note: If the status data is available, this parameter will filter out the charging stations based on the status per given charging point. ChargingPoints for which the status data is not available will be included in the search results.

minPower

A power rate, used to restrict the results to ChargingStations with at least one connector that has a power greater or equal to this minimum power.

maxPower

A power rate, used to restrict the results to ChargingStations with at least one connector that has a power lesser or equal to this maximum power.

accessTypes

A list of AccessTypes used to restrict the results to the charging stations that have at least one of the specified access types. This does not guarantee that all charging parks will have the same accessTypes.

locale

The language in which search results should be returned.