Նորությունների ուղարկումը և NakBus նավատորմը այժմ գործընկերոջ վահանակում են
Կապեք ձեր ծրագրավորողի հաշիվը նույն էլփոստով Nakordoni Partners հաշվի հետ և այնտեղ կառավարեք նորությունները և ձեր ավտոբուսային նավատորմը (NakDriver / NakManager)՝ թիմային դերերով։ Ձեր API բանալիները, endpoint-ները և հավելվածները մնում են անփոփոխ, իսկ այստեղի էջերը շարունակում են աշխատել։ Բացել Nakordoni Partners-ը
Ուղիղ հերթի և թարմության API Online
Երբ է անցակետը վերջին անգամ թարմացվել, որ աղբյուրից և թարմության գնահատական։
GET https://nakordoni.eu/api/v1/data/update-info
— քվոտայի դաս: cheap
| Պարամետր | Նկարագրություն |
|---|---|
ppid | Ստուգման կետի ID, օրինակ id_13 (տես /api/v1/data/checkpoints) |
lang | Լեզվի կոդ |
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
data.queue_now | Vehicles in the queue at the latest reading. |
data.timestamp | When that reading was taken (unix), with datetime and timezone — the checkpoint's own zone. |
data.age_seconds | How old the reading is now, also as age_minutes and age_hours. |
data.freshness | Plain-language band for that age. is_realtime says the row is an observation rather than a forecast point — it does NOT say the observation was counted; read data_quality for that. |
data.data_quality | high = the reading was counted from a real observation source at the crossing; low = a modelled estimate, because that checkpoint has no counting source. Same high|low vocabulary as the checkpoints directory, Border Queue and Best Time to Cross. Both are real answers; low is not an error, but do not present a low value to drivers as a measurement. |
data.found | false = we monitor the checkpoint but hold no reading; status carries the reason. |
data.origin | Which upstream the reading came from. |
curl "https://nakordoni.eu/api/v1/data/update-info?ppid=id_13" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Մուտք գործեք որպես ծրագրավորող՝ այս endpoint-ը ուղիղ Sandbox-ում փորձելու համար — օրական 50 անվճար թեստային կանչ։ Մուտք
Թարմացվել է