Package com.azure.maps.search.models
Class SearchAddressOptions
java.lang.Object
com.azure.maps.search.models.BaseSearchOptions<SearchAddressOptions>
com.azure.maps.search.models.SearchAddressOptions
Class holding optional parameters for Search.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchAddressOptions
(String query) Builds fuzzy search options with only the query string. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.azure.core.models.GeoPosition>
Returns the coordinates.Returns the entity type.Returns the extended postal codes.getQuery()
Returns the query string.Returns whether this is a typeahead search.setCoordinates
(com.azure.core.models.GeoPosition coordinates) Sets the coordinates.setEntityType
(GeographicEntityType entityType) Sets the entity type.setExtendedPostalCodesFor
(List<SearchIndexes> extendedPostalCodesFor) Sets the extended postal codes.setIsTypeAhead
(Boolean isTypeAhead) Sets whether this is a typeahead search.Sets the query string.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
-
SearchAddressOptions
Builds fuzzy search options with only the query string.- Parameters:
query
- the query string used in the fuzzy search.
-
-
Method Details
-
getCoordinates
Returns the coordinates.- Returns:
- the coordinates.
-
getQuery
Returns the query string.- Returns:
- the query string.
-
isTypeAhead
Returns whether this is a typeahead search.- Returns:
- whether this is a typeahead search.
-
getExtendedPostalCodesFor
Returns the extended postal codes.- Returns:
- the extended postal codes used in the search.
-
getEntityType
Returns the entity type.- Returns:
- the entity type.
-
setIsTypeAhead
Sets whether this is a typeahead search.- Parameters:
isTypeAhead
- whether this is a typeahead search.- Returns:
- a reference to this @{code SearchAddressOptions}
-
setExtendedPostalCodesFor
Sets the extended postal codes.- Parameters:
extendedPostalCodesFor
- the extended postal codes used in the search.- Returns:
- a reference to this @{code SearchAddressOptions}
-
setEntityType
Sets the entity type.- Parameters:
entityType
- the entity type.- Returns:
- a reference to this @{code SearchAddressOptions}
-
setCoordinates
Sets the coordinates.- Parameters:
coordinates
- the coordinates.- Returns:
- a reference to this @{code SearchAddressOptions}
-
setQuery
Sets the query string.- Parameters:
query
- the query string.- Returns:
- a reference to this @{code SearchAddressOptions}
-