Polygon ID
If you are unsure where to find the Polygon ID we've got you covered. A Polygon is essentially what we refer to as a geography in the web application.
You can utilize our APIs to retrieve Polygon Ids. Fetch polygon IDs by using the following API and passing your API key. Once obtained, you can retrieve the specific Polygon ID you need.
Try fetch the polygon ids related to your Atlas map(s) in the "Sandbox":
Here is the Request Curl.
curl --request GET \
--url 'https://app-api.geposit.se/v2.0/geometry/polygon?api_key=<your_api_key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
[
"contId"
]
'
Here is how the response would look like.
[
{
"polygon_id": "poly1",
"ref_id": "ref1",
"feature_id": "fea1",
"map_id": "map1",
"container_id": "container1",
"tenant_id": "tenant1",
"user_id": "user1",
"created_at": "2024-02-13T08:00:00Z",
"updated_at": "2024-02-13T08:00:00Z",
"the_geom": "geom1",
"name": "Example Polygon",
"type": "example_type",
"country_code": "se",
"geo_type": "county"
},
{
"polygon_id": "poly2",
"ref_id": "ref2",
"feature_id": "fea2",
"map_id": "map2",
"container_id": "container2",
"tenant_id": "tenant2",
"user_id": "user2",
"created_at": "2024-02-13T08:00:00Z",
"updated_at": "2024-02-13T08:00:00Z",
"the_geom": "geom2",
"name": "Another Example Polygon",
"type": "another_example_type",
"country_code": "no",
"geo_type": "district"
}
]
Also, you can switch on the Show Object Idsand retrieve the Polygon Id from the web application itself. Once you navigate in to the relavent map, you will obtain the Polygon ID as follows.
Updated 9 months ago