Builder

class Builder(resultLimit: Int = DEFAULT_SEARCH_RESULT_LIMIT, searchRadius: Double = DEFAULT_SEARCH_RADIUS, resultFilters: MutableList<Predicate<EVStation>> = mutableListOf(), targetPointForSearchSorting: Point? = null)

Constructors

Link copied to clipboard
constructor(resultLimit: Int = DEFAULT_SEARCH_RESULT_LIMIT, searchRadius: Double = DEFAULT_SEARCH_RADIUS, resultFilters: MutableList<Predicate<EVStation>> = mutableListOf(), targetPointForSearchSorting: Point? = null)

Functions

Link copied to clipboard
Link copied to clipboard

Clears all of the search result filters.

Link copied to clipboard

The search results should contain no more than the quantity indicated

Link copied to clipboard

Appends a filter that will be applied to search results. Results that return true for any EVStation will be included others will be removed from the result list.

Link copied to clipboard

Replaces all search filters with the filters provided.

Link copied to clipboard

Indicates the EV search radius.

Link copied to clipboard

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