API Valichi Alternativi Online
Valichi alternativi nelle vicinanze sullo stesso confine con le code attuali e gli scarti di distanza.
GET https://nakordoni.eu/api/v1/data/alternatives
— classe di quota: cheap
| Parametro | Descrizione |
|---|---|
ppid | ID del valico |
lang | Codice lingua |
crossing_type | Sostituire il filtro tipo veicolo — es. 4=auto, 6=bus, 7=pedone, 9=camion |
limit | Max risultati da restituire (predefinito 5) |
Campi della risposta — all’interno dell’oggetto data della busta. [] indica una lista, quindi data.items[].name è il campo name di ogni elemento. Un campo è null, assente o una lista vuota quando non abbiamo un valore — mai un segnaposto.
| Campo | Descrizione |
|---|---|
data.ppid | The checkpoint you asked about, with checkpoint.name, checkpoint.queue, checkpoint.unit and checkpoint.source_url. |
data.crossing_type_filter | Vehicle type the alternatives were filtered to. |
data.alternatives[].ppid | A nearby crossing on the same border, with name and source_url. |
data.alternatives[].distance_km | Road distance from the checkpoint you asked about. |
data.alternatives[].queue | Its queue now, in unit, and diff — the difference against your checkpoint (negative = shorter). |
data.alternatives[].is_better | true when this crossing is currently the better bet. |
data.best | The single best alternative, same fields — null when none beats your checkpoint. |
data.generated_at | When 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"
🔑 Accedi come sviluppatore per provare questo endpoint dal vivo nella sandbox — 50 chiamate di prova gratuite al giorno. Accedi