Package com.azure.maps.search.models
Class SearchPointOfInterestOptions
java.lang.Object
com.azure.maps.search.models.BaseSearchOptions<T>
com.azure.maps.search.models.BaseSearchPointOfInterestOptions<SearchPointOfInterestOptions>
com.azure.maps.search.models.SearchPointOfInterestOptions
public final class SearchPointOfInterestOptions
extends BaseSearchPointOfInterestOptions<SearchPointOfInterestOptions>
Options for searching points of interest.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds fuzzy search options with query string and coordinates.SearchPointOfInterestOptions
(String query, com.azure.core.models.GeoPosition coordinates) Builds fuzzy search options with query string and coordinates.SearchPointOfInterestOptions
(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.isTypeAhead
(Boolean isTypeAhead) Sets whether this is a typeahead search.setExtendedPostalCodesFor
(List<PointOfInterestExtendedPostalCodes> extendedPostalCodesFor) Sets the extended postal codes for.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
-
SearchPointOfInterestOptions
Builds fuzzy search options with query string and coordinates.- Parameters:
query
- The query to be used to search for points of interest.
-
SearchPointOfInterestOptions
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.
-
SearchPointOfInterestOptions
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
-
isTypeAhead
Sets whether this is a typeahead search.- Parameters:
isTypeAhead
- whether this is a typeahead search.- Returns:
- a reference to this
SearchPointOfInterestOptions
-
setExtendedPostalCodesFor
public SearchPointOfInterestOptions setExtendedPostalCodesFor(List<PointOfInterestExtendedPostalCodes> extendedPostalCodesFor) Sets the extended postal codes for.- Parameters:
extendedPostalCodesFor
- extended postal codes used for search- Returns:
- a reference to this
SearchPointOfInterestOptions
-
setQuery
Sets the query string.- Parameters:
query
- the query string- Returns:
- a reference to this
SearchPointOfInterestOptions
-