MapsSearchClient.SearchAddressAsync 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.
Address geocoding. The geocoding is performed by hitting the geocode endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No POIs will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties, states etc.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>> SearchAddressAsync (string query, Azure.Maps.Search.SearchAddressOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SearchAddressAsync : string * Azure.Maps.Search.SearchAddressOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
override this.SearchAddressAsync : string * Azure.Maps.Search.SearchAddressOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
Public Overridable Function SearchAddressAsync (query As String, Optional options As SearchAddressOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchAddressResult))
Parameters
- query
- String
The POI name to search for (e.g., "statue of liberty", "starbucks", "pizza"). Must be properly URL encoded.
- options
- SearchAddressOptions
additional options
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Remarks
Address Geocoding
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