Package com.azure.maps.search.models
Class SearchPointOfInterestCategoryOptions
java.lang.Object
com.azure.maps.search.models.BaseSearchOptions<T>
com.azure.maps.search.models.BaseSearchPointOfInterestOptions<SearchPointOfInterestCategoryOptions>
com.azure.maps.search.models.SearchPointOfInterestCategoryOptions
public final class SearchPointOfInterestCategoryOptions
extends BaseSearchPointOfInterestOptions<SearchPointOfInterestCategoryOptions>
Options for searching point of interest category.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds fuzzy search options with query string and coordinates.SearchPointOfInterestCategoryOptions
(String query, com.azure.core.models.GeoPosition coordinates) Builds fuzzy search options with query string and coordinates.SearchPointOfInterestCategoryOptions
(String query, List<String> countryFilter) Builds fuzzy search options with query string and country filter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the extended postal codes for.getQuery()
Returns the query string.Returns whether this is a typeahead search.setExtendedPostalCodesFor
(List<SearchIndexes> extendedPostalCodesFor) Sets the extended postal codes for.setIsTypeAhead
(Boolean isTypeAhead) Sets whether this is a typeahead search.Sets the query string.Methods inherited from class com.azure.maps.search.models.BaseSearchPointOfInterestOptions
getBrandFilter, getCategoryFilter, getCoordinates, getElectricVehicleConnectorFilter, getOperatingHours, setBrandFilter, setCategoryFilter, setCoordinates, setElectricVehicleConnectorFilter, setOperatingHours
Methods inherited from class com.azure.maps.search.models.BaseSearchOptions
getBoundingBox, getCountryFilter, getLanguage, getLocalizedMapView, getRadiusInMeters, getSkip, getTop, setCountryFilter, setGeoBoundingBox, setLanguage, setLocalizedMapView, setRadiusInMeters, setSkip, setTop
-
Constructor Details
-
SearchPointOfInterestCategoryOptions
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
- TheGeoPosition
coordinates to be searched.
-
SearchPointOfInterestCategoryOptions
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
Returns whether this is a typeahead search.- Returns:
- whether this is a typeahead search
-
getExtendedPostalCodesFor
Returns the extended postal codes for.- Returns:
- the extended postal codes used for the search
-
getQuery
Returns the query string.- Returns:
- the query string
-
setIsTypeAhead
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
-