Builder

class Builder(resultLimit: Int = DEFAULT_RESULT_LIMIT, searchRadius: Double = DEFAULT_EV_STATION_SEARCH_RADIUS_KM, evSearchResultRankings: MutableList<EvSearchResultRanking> = mutableListOf(), evSearchResultFilters: MutableList<EvSearchFilter> = mutableListOf(), targetPointForSearchSorting: Point? = null)

Constructors

Link copied to clipboard
constructor(resultLimit: Int = DEFAULT_RESULT_LIMIT, searchRadius: Double = DEFAULT_EV_STATION_SEARCH_RADIUS_KM, evSearchResultRankings: MutableList<EvSearchResultRanking> = mutableListOf(), evSearchResultFilters: MutableList<EvSearchFilter> = mutableListOf(), targetPointForSearchSorting: Point? = null)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Adds a search ranking to the first position in the rankings collection. Order matters, the rankings are processed from the first in the collection to the last.

Link copied to clipboard

If provided the search results will be sorted by the distance from the target point in ascending order.