Skip to content

Everything about a spot

GET
/v1/location
curl --request GET \
--url 'https://api.uavcrew.ai/v1/location?lat=1&lon=1&layers=airspace%2Ctfr&alt_ft=400&radius_nm=5' \
--header 'Authorization: Bearer <token>'

Return what is known about one spot: every layer, or only the layers asked for.

Each layer answers on its own with a status. Only ok carries data; unavailable and not_built mean nothing is known, never that the spot is clear. The response is data, not a go/no-go decision.

lat
required
Lat

Latitude (WGS84).

number
>= -90 <= 90

Latitude (WGS84).

lon
required
Lon

Longitude (WGS84).

number
>= -180 <= 180

Longitude (WGS84).

layers
Any of:
string

Comma-separated layer names, e.g. airspace,tfr. Omit to get every layer.

alt_ft
Alt Ft

Height of interest in feet above ground.

number
default: 400 <= 10000

Height of interest in feet above ground.

radius_nm
Radius Nm

How far around the spot to look for nearby features, in nautical miles.

number
default: 5 > 0 <= 50

How far around the spot to look for nearby features, in nautical miles.

at
Any of:
string format: date-time

When the answer is for (ISO 8601). It decides which TFRs and NOTAMs are active. Default: now. A time without a zone is read as UTC.

Successful Response

Media typeapplication/json
LocationResponse
object
point
required
Point
object
lat
required
Lat

Latitude in decimal degrees (WGS84).

number
lon
required
Lon

Longitude in decimal degrees (WGS84).

number
alt_ft
required
Alt Ft

Height of interest in feet AGL, as asked.

number
radius_nm
required
Radius Nm

How far around the spot nearby features were searched.

number
at
required
At

The time the answer is for (UTC).

string format: date-time
layers
required
Layers

The layers asked for, keyed by name, in a fixed order.

object
key
additional properties
LayerResult

One layer’s answer for the spot.

object
status
required
Status

ok: data is the answer, and an empty list there means nothing was found. unavailable: the source could not be read, so nothing is known. not_built: this layer is planned but not available yet. Treat anything but ok as unknown, never as clear.

string
Allowed values: ok unavailable not_built
as_of
Any of:
string format: date-time
data
Data

The layer’s answer. Null unless status is ok.

reason
Any of:
string

Example

{
"layers": {
"additionalProperty": {
"status": "ok"
}
}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}