Skip to main content
Menu

← Barcha yakuniy nuqtalar

Chegaradagi ob-havo sharoiti API Offline

Chegara o'tkazish punktidagi yo'l xavfi yagona 0–5 shkalasida: toza yo'l, tuman, qor, yomg'ir, muz yoki kuchli shamol — o'z tilingizda, xavf darajasi, ma'lumot yoshi va manbasi bilan: haydovchi yoki bizning modelimiz.

GET https://nakordoni.eu/api/v1/data/weather — kvota sinfi: cheap

ParametrTavsif
ppidNazorat nuqtasi ID, masalan id_13 (qarang /api/v1/data/checkpoints)
langHolat va xavf darajasi nomlari tili (25 til; standart en)
sourcesall (standart) | community — faqat haydovchilar xabarlari | model — faqat bizning tasnifimiz
max_age_minutesHali hisobga olinadigan ma'lumotning eng katta yoshi (standart 180, min. 15, maks. 1440 daqiqa)

Javob maydonlari — javob konvertidagi data obyekti ichida. [] ro‘yxatni bildiradi, ya’ni data.items[].name har bir elementning name maydonidir. Qiymatimiz bo‘lmagan maydon null bo‘ladi, umuman bo‘lmaydi yoki bo‘sh ro‘yxat qaytadi — o‘rniga hech qachon soxta qiymat qo‘ymaymiz.

MaydonTavsif
data.condition.codeThe marker, 0..5, with key the stable machine name (good, fog, snow, rain, ice, wind) and name the same thing in the requested language, worded for a driver ("Slippery!", not "freezing precipitation"). null when nothing was reported inside the window — see data.no_data.
data.condition.severitynone | low | moderate | major, the same severity vocabulary road-conditions uses, with severity_name in the requested language.
data.condition.severity_rankDanger order when you sort several checkpoints: 1 ice, 2 fog, 3 snow, 4 rain, 5 wind, 6 clear. Lower is worse — the codes themselves are NOT an order.
data.condition.hazardtrue for anything but a clear road, so a client can gate an alert on one field.
data.observed_atWhen the marker was written (Europe/Kyiv), with observed_ts as a Unix timestamp.
data.data_age_minutesAge of that marker in minutes, with is_fresh true when it is under 3 hours old. Read it before treating the answer as current.
data.source_typecommunity when a driver reported it, model when our weather model classified it. null when there is no marker.
data.no_datatrue when no marker exists for this checkpoint inside the window — an honest gap, not a clear road. Widen max_age_minutes or drop the sources filter.
data.scaleThe whole 0..5 vocabulary as an array indexed by code, so you can label a value without hardcoding our wording.
data.sourcesThe filters actually applied, with window_minutes — both echoed back after clamping.
curl "https://nakordoni.eu/api/v1/data/weather?ppid=id_13&lang=en" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Bu yakuniy nuqtani sinov maydonida jonli sinab koʻrish uchun dasturchi sifatida kiring — kuniga 50 ta bepul test chaqiruvi. Kirish