Delen via


MapsSearchClient.GetPolygons 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 Azure.Response<Azure.Maps.Search.Models.PolygonResult> GetPolygons (System.Collections.Generic.IEnumerable<string> geometryIds, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPolygons : seq<string> * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.PolygonResult>
override this.GetPolygons : seq<string> * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.PolygonResult>
Public Overridable Function GetPolygons (geometryIds As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As 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