NAVAIDs
GET/api/v1/navaids/nearbyCommercial Pilot

Search Nearby

Searches for navaids near a geographic point. Results are filtered by radius but not sorted by distance; pagination order is deterministic but arbitrary.

Code Examples

curl \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  "https://api.preflightapi.io/api/v1/navaids/nearby?lat=40.6413&lon=-73.7781&limit=25&radiusNm=10&type=value"

Description

GET /api/v1/navaids/nearby?lat=32.897&lon=-97.038 — default 30 NM radius
GET /api/v1/navaids/nearby?lat=32.897&lon=-97.038&radiusNm=50&type=VOR — VORs within 50 NM

Returns paginated results of NavaidDto

Parameters

NameInTypeDescription
latquerynumberLatitude in decimal degrees (-90 to 90)
lonquerynumberLongitude in decimal degrees (-180 to 180)
cursorquerystring?Opaque cursor value from a previous response's pagination.nextCursor field. Omit or leave null to start from the first page.
limitqueryintegerMaximum number of items to return per page. Minimum 1, maximum 500, default 100.
radiusNmquerynumberSearch radius in nautical miles (default 30, must be greater than 0)
typequerystring?Optional navaid type filter (e.g., VOR, VORTAC, NDB)

Response Schema

200Returns the navaids foundPaginatedResponseOfNavaidDto
400If coordinates or radius are invalidApiErrorResponse
codestring

Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").

messagestring

Human-readable error message suitable for display.

detailsstringnullable

Additional error details (only included in development environment).

servicestringnullable

Name of the external service that failed (only included for 503 errors).

validationErrorsRecord<string, string[]>nullable

Field-level validation errors (only for validation failures).

timestampstring

UTC timestamp when the error occurred.

traceIdstringnullable

Correlation ID for tracing the request.

pathstringnullable

Request path that generated the error.

Search Documentation

Search docs, endpoints, and schemas