Skip to main content
Menu

← Bütün son nöqtələr

Nəzarət məntəqəsi alternativləri API Online

Eyni sərhəddə yaxınlıqdakı alternativ nəzarət məntəqələri cari növbələr və məsafə fərqləri ilə.

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

ParametrTəsvir
ppidNəzarət məntəqəsi ID
langDil kodu
crossing_typeNəqliyyat vasitəsi tipi filtrini əvəz edin — məs. 4=avtomobil, 6=avtobus, 7=piyada, 9=yük maşını
limitMaks. qaytarılacaq nəticə sayı (standart 5)

Cavab sahələri — cavab zərfindəki data obyektinin içində. [] siyahını bildirir, yəni data.items[].name hər elementin name sahəsidir. Dəyəri olmayan sahə null olur, ümumiyyətlə görünmür və ya boş siyahı qaytarır — heç vaxt doldurucu qoymuruq.

SahəTəsvir
data.ppidThe checkpoint you asked about, with checkpoint.name, checkpoint.queue, checkpoint.unit and checkpoint.source_url.
data.crossing_type_filterVehicle type the alternatives were filtered to.
data.alternatives[].ppidA nearby crossing on the same border, with name and source_url.
data.alternatives[].distance_kmRoad distance from the checkpoint you asked about.
data.alternatives[].queueIts queue now, in unit, and diff — the difference against your checkpoint (negative = shorter).
data.alternatives[].is_bettertrue when this crossing is currently the better bet.
data.bestThe single best alternative, same fields — null when none beats your checkpoint.
data.generated_atWhen the comparison was made.
curl "https://nakordoni.eu/api/v1/data/alternatives?ppid=id_13&crossing_type=4" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Bu son nöqtəni sınaq mühitində canlı yoxlamaq üçün developer kimi daxil olun — gündə 50 pulsuz test sorğusu. Giriş