Ավտոբուսային փոխադրողի սահմանային վիճակագրության API Online
Սահմանահատման ցուցանիշներ ըստ ավտոբուսային փոխադրողի՝ հատումներ, միջին/մեդիան/նվազ/առավ սպասման րոպեներ — կառուցված մեր սեփական համարանիշով համընկնող հատման գրառումներից։
GET https://nakordoni.eu/api/v1/data/bus-carriers
— քվոտայի դաս: cheap
| Պարամետր | Նկարագրություն |
|---|---|
ppid | Կետի ID-ն, օրինակ id_13 — կամ "all" ագրեգացված ցուցակի համար |
days | Ժամանակահատված 1-90 (լռելյայն 30) |
min_crossings | Փոխադրողին ներառելու նվազագույն հատումներ (լռելյայն 3) |
limit | Վերադարձվող փոխադրողների առավելագույնը (լռելյայն 20) |
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
data.companies[].name | Carrier, as matched from plates seen at the border. |
data.companies[].crossings | How many crossings of theirs we matched in the period. |
data.companies[].avg_wait_min | Their average border wait, with median_wait_min, min_wait_min and max_wait_min. |
data.companies[].max_wait_days_ago | How long ago the worst wait happened — an old outlier is not today's carrier. |
data.total_crossings | Crossings observed in period_days, with matched_crossings — the subset a carrier could be identified for. |
data.data_available | false = too little matched data for the checkpoint/period to report anything. |
data.ppid | Checkpoint the stats are for ('all' when aggregated), with mode and generated_at. |
curl "https://nakordoni.eu/api/v1/data/bus-carriers?ppid=all&days=30" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Մուտք գործեք որպես ծրագրավորող՝ այս endpoint-ը ուղիղ Sandbox-ում փորձելու համար — օրական 50 անվճար թեստային կանչ։ Մուտք