Class SearchPointOfInterestCategoryOptions


public final class SearchPointOfInterestCategoryOptions extends BaseSearchPointOfInterestOptions<SearchPointOfInterestCategoryOptions>
Options for searching point of interest category.
  • Constructor Details

    • SearchPointOfInterestCategoryOptions

      public SearchPointOfInterestCategoryOptions(String query)
      Builds fuzzy search options with query string and coordinates.
      Parameters:
      query - The query to be used to search for points of interest.
    • SearchPointOfInterestCategoryOptions

      public SearchPointOfInterestCategoryOptions(String query, com.azure.core.models.GeoPosition coordinates)
      Builds fuzzy search options with query string and coordinates.
      Parameters:
      query - The query to be used to search for points of interest.
      coordinates - The GeoPosition coordinates to be searched.
    • SearchPointOfInterestCategoryOptions

      public SearchPointOfInterestCategoryOptions(String query, List<String> countryFilter)
      Builds fuzzy search options with query string and country filter.
      Parameters:
      query - The query to be used to search for points of interest.
      countryFilter - A list of country codes - e.g. "US", "GB", "DE", etc.
  • Method Details

    • isTypeAhead

      public Boolean isTypeAhead()
      Returns whether this is a typeahead search.
      Returns:
      whether this is a typeahead search
    • getExtendedPostalCodesFor

      public List<SearchIndexes> getExtendedPostalCodesFor()
      Returns the extended postal codes for.
      Returns:
      the extended postal codes used for the search
    • getQuery

      public String getQuery()
      Returns the query string.
      Returns:
      the query string
    • setIsTypeAhead

      public SearchPointOfInterestCategoryOptions setIsTypeAhead(Boolean isTypeAhead)
      Sets whether this is a typeahead search.
      Parameters:
      isTypeAhead - whether this is a typeahead search
      Returns:
      a reference to this SearchPointOfInterestCategoryOptions
    • setExtendedPostalCodesFor

      public SearchPointOfInterestCategoryOptions setExtendedPostalCodesFor(List<SearchIndexes> extendedPostalCodesFor)
      Sets the extended postal codes for.
      Parameters:
      extendedPostalCodesFor - the extended postal codes used for the search
      Returns:
      a reference to this SearchPointOfInterestCategoryOptions
    • setQuery

      Sets the query string.
      Parameters:
      query - the query string
      Returns:
      a reference to this SearchPointOfInterestCategoryOptions