/api/v1/obstacles/by-oas-numbersPrivate PilotGet By Oas Numbers
Gets multiple obstacles by their OAS numbers. This endpoint is designed to be used with the
ObstacleOasNumbers returned by the navigation log endpoint (POST /api/v1/navlog/calculate)
to retrieve full details for obstacles near a planned route.
Code Examples
curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '[
"12-345678",
"12-345679"
]' \
"https://api.preflightapi.io/api/v1/obstacles/by-oas-numbers"curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '[
"12-345678",
"12-345679"
]' \
"https://api.preflightapi.io/api/v1/obstacles/by-oas-numbers"Description
Send a JSON array of OAS number strings in the request body:
["12-345678", "12-345679", "12-345680"]Response Schema
Obstacle Assessment Surface (OAS) number — the unique identifier for this obstacle. This is the key used to look up obstacles returned by the navigation log endpoint's ObstacleOasNumbers field.
Two-letter state identifier.
City nearest to the obstacle.
Latitude in decimal degrees (WGS 84).
Longitude in decimal degrees (WGS 84).
Type of obstacle (e.g., TOWER, BLDG, STACK).
Number of obstacles at this location.
Height above ground level in feet.
Height above mean sea level in feet.
Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
Human-readable error message suitable for display.
Additional error details (only included in development environment).
Name of the external service that failed (only included for 503 errors).
Field-level validation errors (only for validation failures).
UTC timestamp when the error occurred.
Correlation ID for tracing the request.
Request path that generated the error.