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 |
withCategorySet(java.util.List<java.lang.Long> categorySet)
Restricts the results to the categories of provided POIs.
|
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 |
withMapCodes(java.util.Set<MapCodeType> mapCodes)
Enables the return of mapcodes.
|
AlongRouteSearchQueryBuilder |
withOpeningHours(OpeningHoursMode openingHours)
When used includes a list of opening hours for a POI (Points of Interest).
|
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.
|
AlongRouteSearchQueryBuilder |
withTimeZone(TimeZoneType timeZone)
When used includes POIs' time zones.
|
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.@NonNull public AlongRouteSearchQueryBuilder withCategorySet(java.util.List<java.lang.Long> categorySet)
IAlongRouteSearchQuery
withCategorySet
in interface IAlongRouteSearchQuery
categorySet
- Restricts the POIs in the Response to those whose id is listed in the categorySet.@NonNull public AlongRouteSearchQueryBuilder withOpeningHours(OpeningHoursMode openingHours)
IAlongRouteSearchQuery
withOpeningHours
in interface IAlongRouteSearchQuery
openingHours
- The opening hours scope.@NonNull public AlongRouteSearchQueryBuilder withMapCodes(java.util.Set<MapCodeType> mapCodes)
IAlongRouteSearchQuery
withMapCodes
in interface IAlongRouteSearchQuery
mapCodes
- The enum type indicating supported MapCodes.public AlongRouteSearchQueryBuilder withTimeZone(TimeZoneType timeZone)
IAlongRouteSearchQuery
withTimeZone
in interface IAlongRouteSearchQuery
timeZone
- The enum indicating the type of the time zone.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
.