共用方式為


MapsSearchClient.SearchNearbyPointOfInterestAsync Method

Definition

Nearby search API. If you have a use case for only retrieving POI results around a specific location, the nearby search method may be the right choice. This endpoint will only return POI results, and does not take in a search query parameter.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>> SearchNearbyPointOfInterestAsync (Azure.Maps.Search.SearchNearbyPointOfInterestOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SearchNearbyPointOfInterestAsync : Azure.Maps.Search.SearchNearbyPointOfInterestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
override this.SearchNearbyPointOfInterestAsync : Azure.Maps.Search.SearchNearbyPointOfInterestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
Public Overridable Function SearchNearbyPointOfInterestAsync (Optional options As SearchNearbyPointOfInterestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchAddressResult))

Parameters

options
SearchNearbyPointOfInterestOptions

additional options

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Remarks

Nearby Search

Applies to