AirHub API
  1. Surface
AirHub API
  • Introduction
  • Authorization
    • Overview
    • Get Oauth Token
      POST
  • Advisories
    • Advisory
      POST
    • Get Advisories BBox
      GET
    • Get Advisories GeoJSON
      POST
  • Briefing
    • Overview
    • B4UFLY
      • What Is B4UFLY
      • The API Basics
      • Location vs Area
      • v1
        • B4UFLY Briefing by Area v1
        • B4UFLY Briefing by Location v1
      • v2
        • What's New in v2
        • B4UFLY Briefing by Area v2
        • B4UFLY Briefing by Location v2
  • LAANC SDSP
    • Overview
    • ASL Operations
      • List Operations
      • Create Operation
      • Get Operation
      • Delete Operation
      • Update Operation
    • LAANC Operations
      • Get Operation
      • Delete Operation
      • Create Operation
      • Update Operation
    • LAANC Authorizations
      • Rescinded and Invalid Operations
      • Submit Authorization
      • Get Authorization
      • Cancel Authorization
      • Cancel Invalid Authorization
      • Close Authorization
      • Acknowledge Rescinded Authorization
    • Operation v2
      POST
    • Create Ephemeral Operations
      POST
  • Risk
    • Get Hazard
      POST
    • Get Hazard Ground Type
      POST
    • Get Hazard Ground Risk
      POST
  • Aviation
    • Aviation
      POST
  • Surface
    • Overview
    • Suitability
      POST
    • Classification Surface
      POST
    • Surface v2 GeoJSON
      POST
    • Surface v2 Hexbin
      POST
  • Route
    • Route v2
  • Check
    • Check Airspace
    • Get Status
  • Elevation - NEW
    • Get List
  • Map Vector Tiles - NEW
    • Overview
    • Styled Tiles
    • Vector Tile
  • Flight
    • Get Flight Last Position QUERY
    • Get Flight Last Position INFO
  • Data Notification Subscribers
    • Get List
  1. Surface

Classification Surface

Sandbox
https://airhub-api-sandbox.airspacelink.com
Sandbox
https://airhub-api-sandbox.airspacelink.com
POST
/v2/classify
Last modified:2025-07-15 16:22:45
Scope: surface:create
The HexGen™ Surface API is a powerful geospatial aggregation and modeling engine that efficiently processes and combines multiple datasets to generate custom-tailored insights. This API enables users to integrate authoritative data provided by Airspace Link with their own GIS data, creating comprehensive and data-driven solutions. The API simplifies the process of combining and processing large amounts of data, transforming complexity into actionable insights.
For more information see the Surface Overview.

Request

Header Params
Content-Type
enum<string> 
required
Allowed value:
application/json;charset=UTF-8
Example:
application/json;charset=UTF-8
Authorization
string 
required
Authorization bearer accessToken generated in Authorization step
Example:
{{access-token}}
Body Params application/json
geometry
object 
required
coordinates
array [array] 
required
type
string 
required
layers
array [object {2}] 
required
code
enum<string> 
optional
Allowed values:
controlled_airspacefriarailroad_bridgesrailroad_overpasspopulation_daytime_point_65000_650000population_daytime_point_65_650population_daytime_point_1_65population_daytime_point_650_6500parksclass_airspace_schedulenotamsuasfm_ceilingnsufr_ptnational_parks_simplewashington_frztfrfaa_helipadssatrrecreational_flyer_fixed_sitespopulation_daytime_point_6500_65000airportsultralightcommunity_advisoriesnsufr_ftpopulation_daytime_point_6500000balloonportstransmission_lineswater_bodiesbridgeshistorical_location_polygonsstadiumslopeschoolssporting_tfrwind_farmslulcpower_plantsbuilding_footprintglideportsmtr_buffernational_parksbuilding_footprintsstreamsrailroad_linesroadshistorical_location_pointshelipadsfaa_obstaclessua_scheduleseaportsuahospitalsurgent_care
risk
integer 
optional
Relative risk. Higher number represents more risk.
>= 0
resolution
integer 
required
The resolution of the output surface. Based on H3 hex grid resolution.
>= 8<= 13
Example
{
    "geometry": {
        "coordinates": [
            [
                [
                    -83.281174,
                    42.258
                ],
                [
                    -83.281174,
                    42.3121
                ],
                [
                    -83.218689,
                    42.3121
                ],
                [
                    -83.218689,
                    42.258
                ],
                [
                    -83.281174,
                    42.258
                ]
            ]
        ],
        "type": "Polygon"
    },
    "layers": [
        {
            "code": "uasfm_ceiling",
            "risk": 1
        }
    ],
    "resolution": 9
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://airhub-api-sandbox.airspacelink.com/v2/classify' \
--header 'Authorization: ' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
    "geometry": {
        "coordinates": [
            [
                [
                    -83.281174,
                    42.258
                ],
                [
                    -83.281174,
                    42.3121
                ],
                [
                    -83.218689,
                    42.3121
                ],
                [
                    -83.218689,
                    42.258
                ],
                [
                    -83.281174,
                    42.258
                ]
            ]
        ],
        "type": "Polygon"
    },
    "layers": [
        {
            "code": "uasfm_ceiling",
            "risk": 1
        }
    ],
    "resolution": 9
}'

Responses

🟢200Happy path desc
application/json
Body
data
object 
required
bitmaskMap
object 
required
hexes
array [object {3}] 
required
message
string 
required
statusCode
integer 
required
Example
{
    "data": {
        "bitmaskMap": {
            "uasfm_ceiling": {
                "bitmask": 1,
                "risk": 1
            }
        },
        "hexes": [
            {
                "bitmask": 1,
                "index": "892ab2cd8d7ffff",
                "risk": 1
            }
        ]
    },
    "message": "success",
    "statusCode": 200
}
🔴500Internal error
Modified at 2025-07-15 16:22:45
Previous
Suitability
Next
Surface v2 GeoJSON
Built with