Class SearchAlongRouteOptions


public final class SearchAlongRouteOptions extends BaseSearchGeometryOptions<SearchAlongRouteOptions>
Class holding optional parameters for Search along a route.
  • Constructor Details

    • SearchAlongRouteOptions

      public SearchAlongRouteOptions(String query, int maxDetourTime)
      Create search along route options.
      Parameters:
      query - the search query
      maxDetourTime - 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 query
      maxDetourTime - the maximum detour time allowed
      route - the GeoLineString geometry representing the route
  • Method Details

    • getBrandFilter

      public List<String> 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

      public List<ElectricVehicleConnector> getElectricVehicleConnectorFilter()
      Returns the electric vehicle connector filter.
      Returns:
      the electric vehicle connector filter.
    • setBrandFilter

      public SearchAlongRouteOptions setBrandFilter(List<String> brandFilter)
      Sets the brand filter.
      Parameters:
      brandFilter - the brand filter.
      Returns:
      a reference to this SearchAlongRouteOptions
    • setRoute

      public SearchAlongRouteOptions setRoute(com.azure.core.models.GeoLineString route)
      Sets the route.
      Parameters:
      route - the GeoLineString 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

      public SearchAlongRouteOptions setMaxDetourTime(int maxDetourTime)
      Sets the max detour time.
      Parameters:
      maxDetourTime - the max detour time.
      Returns:
      a reference to this SearchAlongRouteOptions