Skip to main content
Menu

← Toate endpointurile

API puncte de trecere alternative Online

Puncte de trecere alternative din apropiere la aceeași frontieră, cu cozile curente și diferențele de distanță.

GET https://nakordoni.eu/api/v1/data/alternatives — clasă de cotă: cheap

ParametruDescriere
ppidID-ul punctului de trecere
langCod de limbă
crossing_typeSuprascrie filtrul tipului de vehicul — ex. 4=mașină, 6=autobuz, 7=pieton, 9=camion
limitNr. maxim de rezultate (implicit 5)

Câmpurile răspunsului — în interiorul obiectului data din plicul răspunsului. [] marchează o listă, deci data.items[].name este câmpul name al fiecărui element. Un câmp este null, lipsește sau este o listă goală atunci când nu avem o valoare — niciodată un substitut.

CâmpDescriere
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"
🔑 Autentifică-te ca dezvoltator pentru a testa acest endpoint live în sandbox — 50 de apeluri de test gratuite pe zi. Autentificare