Package com.azure.maps.search.models
Class SearchAlongRouteOptions
java.lang.Object
com.azure.maps.search.models.BaseSearchGeometryOptions<SearchAlongRouteOptions>
com.azure.maps.search.models.SearchAlongRouteOptions
public final class SearchAlongRouteOptions
extends BaseSearchGeometryOptions<SearchAlongRouteOptions>
Class holding optional parameters for Search along a route.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchAlongRouteOptions
(String query, int maxDetourTime) Create search along route options.SearchAlongRouteOptions
(String query, int maxDetourTime, com.azure.core.models.GeoLineString route) Create search along route options. -
Method Summary
Modifier and TypeMethodDescriptionReturns the brand filter.Returns the electric vehicle connector filter.int
Returns the max detour time.com.azure.core.models.GeoLineString
getRoute()
Returns the route used in the search.setBrandFilter
(List<String> brandFilter) Sets the brand filter.setElectricVehicleConnectorFilter
(List<ElectricVehicleConnector> electricVehicleConnectorFilter) Sets the electric vehicle connector filter.setMaxDetourTime
(int maxDetourTime) Sets the max detour time.setRoute
(com.azure.core.models.GeoLineString route) Sets the route.Methods inherited from class com.azure.maps.search.models.BaseSearchGeometryOptions
getCategoryFilter, getLocalizedMapView, getOperatingHours, getQuery, getTop, setCategoryFilter, setLocalizedMapView, setOperatingHours, setQuery, setTop
-
Constructor Details
-
SearchAlongRouteOptions
Create search along route options.- Parameters:
query
- the search querymaxDetourTime
- the maximum detour time allowed
-
SearchAlongRouteOptions
public SearchAlongRouteOptions(String query, int maxDetourTime, com.azure.core.models.GeoLineString route) Create search along route options.- Parameters:
query
- the search querymaxDetourTime
- the maximum detour time allowedroute
- theGeoLineString
geometry representing the route
-
-
Method Details
-
getBrandFilter
Returns the brand filter.- Returns:
- the brand filter.
-
getMaxDetourTime
public int getMaxDetourTime()Returns the max detour time.- Returns:
- the max detour time.
-
getRoute
public com.azure.core.models.GeoLineString getRoute()Returns the route used in the search.- Returns:
GeoJsonLineString
return the route used in the search.
-
getElectricVehicleConnectorFilter
Returns the electric vehicle connector filter.- Returns:
- the electric vehicle connector filter.
-
setBrandFilter
Sets the brand filter.- Parameters:
brandFilter
- the brand filter.- Returns:
- a reference to this
SearchAlongRouteOptions
-
setRoute
Sets the route.- Parameters:
route
- theGeoLineString
geometry representing the route.- Returns:
- a reference to this
SearchAlongRouteOptions
-
setElectricVehicleConnectorFilter
public SearchAlongRouteOptions setElectricVehicleConnectorFilter(List<ElectricVehicleConnector> electricVehicleConnectorFilter) Sets the electric vehicle connector filter.- Parameters:
electricVehicleConnectorFilter
- the electric vehicle connector filter.- Returns:
- a reference to this
SearchAlongRouteOptions
-
setMaxDetourTime
Sets the max detour time.- Parameters:
maxDetourTime
- the max detour time.- Returns:
- a reference to this
SearchAlongRouteOptions
-