İçeriğe geç
Updraft Docs
English

Kalkış ve iniş · API referansı

Onaylı kalkış ve iniş noktaları, GeoJSON.

GET /v1/sites

Approved takeoff and landing sites in a bounding box

Kimlik: X-Api-Key başlığı; gereken kapsam: kapsam tablosu.

Parametreler

AdYerTipAçıklama
bbox zorunlusorgustringwest,south,east,north in degrees (WGS 84); each side at most 20°, west < east (no antimeridian wrap)
0–200 chars · örnek "28.5,36.0,30.0,37.2"
kindsorgu"takeoff" | "landing" | nullOnly this kind; both when omitted
limitsorguintegerSites per page
1 ≤ x ≤ 500 · varsayılan 100
cursorsorgustring | nullnext_cursor of the previous page
0–64 chars

Yanıtlar

DurumAçıklamaİçerik
200GeoJSON FeatureCollection, ordered by id; ETag and Cache-Control headersapplication/geo+json → SiteCollection
304If-None-Match matched the current ETag; no body
401code: auth_missing, auth_invalid, auth_revokedapplication/geo+json → ErrorBody
403code: auth_scopeapplication/geo+json → ErrorBody
422code: request_invalid, bbox_invalid, bbox_too_large, cursor_invalidapplication/geo+json → ErrorBody
429code: rate_limited, quota_exceeded (Retry-After seconds)
Başlıklar: Retry-After — Seconds until the exhausted window resets
application/json → ErrorBody

GET /v1/sites/{site_id}/suitability

Take-off suitability for a day from the wind forecast (pre-flight planning only)

Kimlik: X-Api-Key başlığı; gereken kapsam: kapsam tablosu.

Parametreler

AdYerTipAçıklama
site_id zorunluyolstring (uuid)Take-off id (GET /v1/sites)
datesorgustring (date) | nullLocal date (Europe/Istanbul), today to today + 4 days; default today
örnek "2026-11-06"

Yanıtlar

DurumAçıklamaİçerik
200Slots of the local day; Cache-Control headerapplication/json → SuitabilityResponse
401code: auth_missing, auth_invalid, auth_revokedapplication/json → ErrorBody
403code: auth_scopeapplication/json → ErrorBody
404code: site_not_foundapplication/json → ErrorBody
422code: request_invalid, date_out_of_rangeapplication/json → ErrorBody
429code: rate_limited, quota_exceeded (Retry-After seconds)
Başlıklar: Retry-After — Seconds until the exhausted window resets
application/json → ErrorBody