Բեռնատարների երթևեկության արգելքների API Online
European truck driving restrictions for one or more countries, including seasonal and holiday bans. Each ban carries its restriction type (General / Local / Sunday / Holiday / Seasonal), the exact scope or roads affected and the minimum weight, and each country a live status computed in its own timezone (active_window / next_window), plus a covered_countries list. ?country= accepts a comma-separated list of up to 3 codes; it is optional in v1 and required in v2. The response also reports `returned`, `total_available` and `truncated` so a capped answer is never mistaken for a complete one, plus `window` {from,to,days} naming the exact date range it covers. v1 always covers the next 7 days; v2 additionally accepts ?date= / ?date_from= + ?date_to= for any window up to 92 days, beginning at most 7 days in the past (this is a forward-looking calendar — older history is refused with 400 date_too_old) and running forward to 2028-12-31.
GET https://nakordoni.eu/api/v2/data/truck-bans
— քվոտայի դաս: cheap
| Պարամետր | Նկարագրություն |
|---|---|
country | ISO-2 երկրի կոդ կամ ստորակետերով բաժանված ցանկ՝ առավելագույնը 3 տարր, օր.՝ RO կամ DE,RO։ v2-ում պարտադիր է; 3-ից ավելին մերժվում է 400 too_many_countries պատասխանով — բաժանեք հարցումը։ |
date | Մեկ օր YYYY-MM-DD ձևաչափով։ Չի համակցվում date_from/date_to-ի հետ։ |
date_from | Պատուհանի սկիզբը (YYYY-MM-DD, ներառյալ)։ Եթե տրված է միայն date_to, լռելյայն՝ այսօր։ |
date_to | Միջակայքի ավարտը (YYYY-MM-DD, ներառյալ)։ Լռելյայն՝ date_from + 7 օր։ Միջակայքը կարող է ընդգրկել առավելագույնը 92 օր — ավելի երկարը մերժվում է 400 date_range_too_long պատասխանով և լուռ չի կտրվում։ Սա առաջ նայող օրացույց է՝ միջակայքը կարող է սկսվել առավելագույնը 7 օր անցյալում (դրանից այն կողմ՝ 400 date_too_old՝ նշելով ամենավաղ ամսաթիվը, որը կարող եք հարցնել) և ձգվում է առաջ մինչև 2028-12-31։ Պատմություն չի տրամադրվում — արտադրանքը հայտնում է, թե ինչ է գործում այսուհետ, ոչ թե ինչ էր գործում անցյալ գարնանը։ |
lang | Լեզվի կոդը երկրների անվանումների և ամփոփման համար (լռելյայն en) |
include_ua_heat | 1 = վերադարձնել նաև Ուկրաինայի հաշվարկված ամառային շոգի արգելքը (24 տ-ից ծանր բեռնատարներին արգելվում է երթևեկել 10:00-22:00, երբ կանխատեսվող ջերմաստիճանը >+28 °C է)՝ ըստ մարզերի։ Ավտոմատ ներառվում է, երբ Ուկրաինան հարցման շրջանակում է (country=UA) — այս դրոշակն այն ավելացնում է միայն այլ երկրով սահմանափակված հարցմանը։ Այն հաշվարկվում է եղանակի կանխատեսումից, այլ ոչ թե կարդացվում արգելքների օրացույցից, ուստի պատասխանում է ձեր ամսաթվերի միջակայքի միայն այն մասի համար, որին հասնում է կանխատեսումը՝ երբեք անցյալի համար և երբեք ua_heat_ban.forecast_horizon-ից այն կողմ (մոտավորապես մեկ շաբաթ առաջ)։ Այդ հորիզոնից ամբողջովին դուրս գտնվող միջակայքը շոգի ոչ մի տող չի վերադարձնի և դա կնշի summary-ում — դա չի նշանակում, որ արգելք չի լինի |
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
data.current_bans[] | Bans in force right now, same fields as upcoming_bans. is_ban_active is the quick boolean for 'may a truck drive at this moment'. |
data.upcoming_bans[].date | Ban day, with time_from and time_until in local time. |
data.upcoming_bans[].country_code | Country the ban applies in, with country_name. |
data.upcoming_bans[].restriction_type | What kind of ban it is (weekend, holiday, heat…), with restriction_details in the requested language. |
data.upcoming_bans[].min_weight_tons | Weight from which the ban bites — a lighter truck is unaffected. |
data.upcoming_bans[].details_url | Official source page for that ban. |
data.bans_by_country | The same bans grouped by ISO-2 country, for rendering per country. |
data.window | The period covered: from, to, days and whether you requested it. |
data.total_bans | Bans in the window, with returned, total_available and truncated — true means narrow the window or page. |
data.covered_countries | Countries we track bans for; countries_not_covered names the ones you asked about that we do not. |
data.summary | One-sentence plain-language summary, ready to show a driver. as_of is when it was assembled. |
data.ua_heat_ban | Ukraine's computed heat ban (see include_ua_heat): per-oblast status plus forecast_horizon, the last date the underlying weather forecast reaches. Heat rows are never returned past that date, so compare it with data.window before reading an empty answer as 'no ban'. |
curl "https://nakordoni.eu/api/v2/data/truck-bans?country=DE,RO&date_from=2026-12-20&date_to=2027-01-06" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
Թարմացվել է