Skip to main content
Menu

← Todos los endpoints

API Puestos Alternativos Online

Puestos alternativos cercanos en la misma frontera con las colas actuales y las diferencias de distancia.

GET https://nakordoni.eu/api/v1/data/alternatives — clase de cuota: cheap

ParámetroDescripción
ppidID del puesto
langCódigo de idioma
crossing_typeReemplazar el filtro de tipo de vehículo — p.ej. 4=coche, 6=autobús, 7=peatón, 9=camión
limitMáx. resultados a devolver (predeterminado 5)

Campos de la respuesta — dentro del objeto data del sobre de respuesta. [] indica una lista, así que data.items[].name es el campo name de cada elemento. Un campo es null, no aparece o es una lista vacía cuando no tenemos valor: nunca un marcador de posición.

CampoDescripción
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"
🔑 Inicia sesión como desarrollador para probar este endpoint en vivo en el sandbox — 50 llamadas de prueba gratuitas al día. Iniciar sesión