public class AlongRouteSearchQueryBuilder extends java.lang.Object implements IAlongRouteSearchQuery
AlongRouteSearchQuery
.Constructor and Description |
---|
AlongRouteSearchQueryBuilder(java.lang.String term,
java.util.List<LatLng> route,
java.lang.Integer maxDetourTime) |
Modifier and Type | Method and Description |
---|---|
AlongRouteSearchQuery |
build()
Creates a new instance of
AlongRouteSearchQuery . |
static AlongRouteSearchQueryBuilder |
create(java.lang.String term,
java.util.List<LatLng> route,
java.lang.Integer maxDetourTime)
Builder used to create an instance of
AlongRouteSearchQuery . |
AlongRouteSearchQueryBuilder |
withBrandSet(java.lang.String brandSet)
A comma-separated list of brand names which could be used to restrict the result to Points Of Interest of specific brands.
|
AlongRouteSearchQueryBuilder |
withDetourOffset()
Turns on the calculation of the distance between the start of the route and the starting point
of the detour to a POI.
|
AlongRouteSearchQueryBuilder |
withEVConnectorSetFilter(java.lang.String EVConnectorSetFilter)
A comma-separated list of connector types which could be used to restrict the result to Points Of Interest
of type Electric Vehicle Station, supporting specific connector types.
|
AlongRouteSearchQueryBuilder |
withGeopoliticalView(java.lang.String geopoliticalView) |
AlongRouteSearchQueryBuilder |
withLimit(java.lang.Integer limit)
The upper limit of the number of results.
|
AlongRouteSearchQueryBuilder |
withSortBy(SortBy sortBy)
Sorts the returned results by the provided criteria.
|
AlongRouteSearchQueryBuilder |
withSpreadingMode(SpreadingMode spreadingMode)
Enables the spreading of returned results evenly along the route.
|
public AlongRouteSearchQueryBuilder(java.lang.String term, java.util.List<LatLng> route, java.lang.Integer maxDetourTime)
@NonNull public AlongRouteSearchQueryBuilder withLimit(java.lang.Integer limit)
IAlongRouteSearchQuery
withLimit
in interface IAlongRouteSearchQuery
limit
- The upper limit of the number of results.@NonNull public AlongRouteSearchQueryBuilder withGeopoliticalView(java.lang.String geopoliticalView)
@NonNull public AlongRouteSearchQueryBuilder withEVConnectorSetFilter(java.lang.String EVConnectorSetFilter)
IAlongRouteSearchQuery
withEVConnectorSetFilter
in interface IAlongRouteSearchQuery
EVConnectorSetFilter
- A comma-separated list of connector types.@NonNull public AlongRouteSearchQueryBuilder withBrandSet(java.lang.String brandSet)
IAlongRouteSearchQuery
withBrandSet
in interface IAlongRouteSearchQuery
brandSet
- A comma-separated list of brand names.@NonNull public AlongRouteSearchQueryBuilder withDetourOffset()
IAlongRouteSearchQuery
withDetourOffset
in interface IAlongRouteSearchQuery
@NonNull public AlongRouteSearchQueryBuilder withSortBy(SortBy sortBy)
IAlongRouteSearchQuery
withSortBy
in interface IAlongRouteSearchQuery
sortBy
- The enum indicating the sorting criteria.@NonNull public AlongRouteSearchQueryBuilder withSpreadingMode(SpreadingMode spreadingMode)
IAlongRouteSearchQuery
withSpreadingMode
in interface IAlongRouteSearchQuery
spreadingMode
- The enum indicating the spreading mode.public static AlongRouteSearchQueryBuilder create(java.lang.String term, java.util.List<LatLng> route, java.lang.Integer maxDetourTime)
AlongRouteSearchQuery
. Once constructed,
the user cannot change the field values.AlongRouteSearchQuery
to be used for further processing.public AlongRouteSearchQuery build()
AlongRouteSearchQuery
.