API של מעברים חלופיים Online
מעברי גבול חלופיים סמוכים על אותו גבול, עם התורים הנוכחיים והפרשי המרחק.
GET https://nakordoni.eu/api/v1/data/alternatives
— מחלקת מכסה: cheap
| פרמטר | תיאור |
|---|---|
ppid | מזהה מעבר גבול |
lang | קוד שפה |
crossing_type | עקיפה של מסנן סוג הרכב — למשל 4=רכב פרטי, 6=אוטובוס, 7=הולך רגל, 9=משאית |
limit | מקסימום תוצאות להחזרה (ברירת מחדל 5) |
שדות התשובה — בתוך אובייקט data שבמעטפת התשובה. [] מסמן רשימה, ולכן data.items[].name הוא שדה name של כל פריט. שדה יהיה null, ייעדר או יחזור כרשימה ריקה כשאין לנו ערך עבורו — לעולם לא ערך ממלא מקום.
| שדה | תיאור |
|---|---|
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"
🔑 התחברו כמפתחים כדי לנסות את נקודת הקצה הזו בשידור חי ב־Sandbox — 50 קריאות בדיקה חינם ביום. התחברות