Skip to main content
Menu

← Všetky endpointy

API alternatívnych priechodov Online

Blízke alternatívne priechody na tej istej hranici s aktuálnymi frontami a rozdielmi vzdialeností.

GET https://nakordoni.eu/api/v1/data/alternatives — trieda kvóty: cheap

ParameterPopis
ppidID priechodu
langKód jazyka
crossing_typePrepísať filter typu vozidla — napr. 4=auto, 6=autobus, 7=chodec, 9=nákladné
limitMax. počet výsledkov (predvolene 5)

Polia odpovede — vnútri objektu data v obálke odpovede. [] označuje zoznam, takže data.items[].name je pole name každého prvku. Pole býva null, chýba alebo je prázdny zoznam, keď preň nemáme hodnotu — zástupný údaj nedopĺňame.

PolePopis
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"
🔑 Prihláste sa ako vývojár a vyskúšajte tento endpoint naživo v sandboxe — 50 bezplatných testovacích volaní denne. Prihlásiť sa