MapsSearchClient.FuzzySearch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The basic default API is Free Form Search which handles the most fuzzy of inputs handling any combination of address or POI tokens. This search API is the canonical 'single line search'. The Free Form Search API is a seamless combination of POI search and geocoding. The API can also be weighted with a contextual position (lat./lon. pair), or fully constrained by a a pair of coordinates and radius, or it can be executed more generally without any geo biasing anchor point.<br><br>We strongly advise you to use the 'countrySet' parameter to specify only the countries for which your application needs coverage, as the default behavior will be to search the entire world, potentially returning unnecessary results.<br><br> E.g.: countrySet
=US,FR <br><br>Please see Search Coverage for a complete list of all the supported countries.<br><br>Most Search queries default to maxFuzzyLevel
=2 to gain performance and also reduce unusual results. This new default can be overridden as needed per request by passing in the query param maxFuzzyLevel
=3 or 4.
public virtual Azure.Response<Azure.Maps.Search.Models.SearchAddressResult> FuzzySearch (string query, Azure.Maps.Search.FuzzySearchOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FuzzySearch : string * Azure.Maps.Search.FuzzySearchOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>
override this.FuzzySearch : string * Azure.Maps.Search.FuzzySearchOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>
Public Overridable Function FuzzySearch (query As String, Optional options As FuzzySearchOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SearchAddressResult)
Parameters
- query
- String
The POI name to search for (e.g., "statue of liberty", "starbucks"), must be properly URL encoded.
- options
- FuzzySearchOptions
additional options
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Remarks
Free Form Search
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor