API близости воздушных тревог Online
Air-raid alerts and airborne objects near ONE border crossing. Anchor on a checkpoint (ppid), a coordinate pair or a city and get back only what is inside your radius (default 100 km): which regions are under alert, how far each is, and how close any tracked object currently is on a 1-5 proximity band. Regions are returned as ISO 3166-2 region_code, the same classifier the regional fuel data uses. DELIBERATELY NOT REAL-TIME: every response is a snapshot 1-3 minutes old with the lag re-randomised per request and stated in as_of/lag_min, and object coordinates are never returned - only distance, bearing and speed relative to your anchor. Source data is crowd/OSINT-derived and partly hand-moderated: a signal, never ground truth, and never a substitute for official air-raid warnings.
GET https://nakordoni.eu/api/v2/data/air-alerts
— класс квоты: cheap
| Параметр | Описание |
|---|---|
ppid | ID пункта пропуска, к которому привязывается запрос, напр. id_94 — найдите его через API справочника пунктов пропуска. Альтернатива lat/lon. |
lat | Широта опорной точки (альтернатива ppid) |
lon | Долгота опорной точки (альтернатива ppid) |
city | Название города — альтернатива lat/lon, преобразуется в координаты |
country | Код страны ISO-2, уточняет город |
radius_km | Радиус поиска в км вокруг опорной точки (по умолчанию 100, мин. 10, макс. 300). Полоса близости 1-5 масштабируется под этот радиус: 5 = ближайшая пятая часть, 1 = самая дальняя пятая часть. |
lang | Код языка (по умолчанию en) |
Поля ответа — внутри объекта data в конверте ответа. [] обозначает список, поэтому data.items[].name — это поле name каждого элемента. Поле бывает null, отсутствует или пустой список, если значения у нас нет, — заглушки мы не подставляем.
| Поле | Описание |
|---|---|
data.anchor | What the radius was measured from: ppid, lat, lng, radius_km. |
data.as_of | Snapshot time — DELIBERATELY not real-time. lag_min states the delay, re-randomised per request, and lag_note explains it. |
data.alerts.count | Regions under alert inside the radius, with region_codes (ISO 3166-2) and items — each with its distance from the anchor. |
data.alerts.unresolved | Alerts that could not be placed on a region, with merged — how many overlapping ones were combined. |
data.targets.count | Tracked objects inside the radius, with items — distance, bearing, speed and a 1-5 proximity band ONLY. Coordinates are never returned. |
data.targets.by_type | Counts per object type, with tracked_total across the whole feed. |
data.attribution | Source labels you must display, with a note per source. |
data.labels | Localised UI strings, including the disclaimer — crowd/OSINT data, never a substitute for official air-raid warnings. |
curl "https://nakordoni.eu/api/v2/data/air-alerts?ppid=id_94&radius_km=100" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
Обновлено