Delen via


MapsSearchClient.GetPolygonsAsync Method

Definition

The Get Polygon service allows you to request the geometry data such as a city or country outline for a set of entities, previously retrieved from an Online Search request in GeoJSON format. The geometry ID is returned in the sourceGeometry object under "geometry" and "id" in either a Search Address or Search Fuzzy call.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.PolygonResult>> GetPolygonsAsync (System.Collections.Generic.IEnumerable<string> geometryIds, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPolygonsAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.PolygonResult>>
override this.GetPolygonsAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.PolygonResult>>
Public Overridable Function GetPolygonsAsync (geometryIds As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolygonResult))

Parameters

geometryIds
IEnumerable<String>

Comma separated list of geometry UUIDs, previously retrieved from an Online Search request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Remarks

Get Polygon

Applies to