Airspace GeoJSON meaning of 'type' and 'icaoClass' fields

281 views
Skip to first unread message

Wouter Wessels

unread,
Sep 21, 2023, 3:50:31 AM9/21/23
to OpenAIP - Aviation Data Platform
Hi,
I am building an app that needs to load the airspaces. I have chosen to use the OpenAIP GeoJSON files.
In the properties block of every airspace, there is a field called icaoclass. I understand that this field indicates the class of the airspace (duh!) ... but the field is an integer, and the classes as I know them are A, B, C ... G.
How do I translate from the Integer to the Class that I need to show the person using my app?

In the properties block ther is alo a field calles 'type'. I assume that is the type like 'CTR, TMA, TMZ, RMZ, Glider prohibited, etc, etc. Again, this is an integer field and I need to translate the integer to the type that I need to show to the pilot.
What are the meanings of the various integer values?

for instance:
"type": 13,
"icaoClass": 6,

Same question for the 'unit' and 'referenceDatum' in the upperLimit and lowerLimit blocks.
For instance:
"lowerLimit": {
   "value": 0,
   "unit": 1,
   "referenceDatum": 0
}

Or, is there a document in the OpenAIP documentation that I missed?

Kind regards,
Wouter Wessels

openaip net

unread,
Sep 23, 2023, 1:51:13 AM9/23/23
to OpenAIP - Aviation Data Platform
Hi,

you can find the enum values in the "schema" section on each endpoint in the API documentation. Open the description for an endpoint, scroll down to the "response" example part and click "schema" above the response code window. This will show the endpoint's JSON schema including all enum values.

Best wishes,

Stephan

Reply all
Reply to author
Forward
0 new messages