surface:create
{
"geometry": {
"coordinates": [
[
[
-83.2428932189941,
42.2835320469015
],
[
-83.2011795043945,
42.2835320469015
],
[
-83.2011795043945,
42.3354533445451
],
[
-83.2428932189941,
42.3354533445451
],
[
-83.2428932189941,
42.2835320469015
]
]
],
"type": "Polygon"
},
"layers": [
{
"code": "code",
"where": [
"AND",
[
[
"=",
"some_field",
100
],
[
"<=",
"another_field",
200
]
]
]
}
],
"resolution": 10
}
curl --location --request POST 'https://airhub-api-sandbox.airspacelink.com/v2/surface' \
--header 'Authorization: ' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
"geometry": {
"coordinates": [
[
[
-83.2428932189941,
42.2835320469015
],
[
-83.2011795043945,
42.2835320469015
],
[
-83.2011795043945,
42.3354533445451
],
[
-83.2428932189941,
42.3354533445451
],
[
-83.2428932189941,
42.2835320469015
]
]
],
"type": "Polygon"
},
"layers": [
{
"code": "code",
"where": [
"AND",
[
[
"=",
"some_field",
100
],
[
"<=",
"another_field",
200
]
]
]
}
],
"resolution": 10
}'
{
"data": [
{
"hexes": [
"872ab2554ffffff",
"872ab2550ffffff"
],
"props": {
"type": "code"
}
}
],
"message": "success",
"statusCode": 200
}