Skip to main content
Menu

← Όλα τα endpoints

API Συνθηκών Οδοστρώματος Online

Εγκεκριμένες αναφορές συνθηκών οδοστρώματος κοντά στα σύνορα και στους κύριους άξονες: λακκούβες, οδικά έργα, αποκλεισμοί, πάγος, κίνδυνοι — συνδυάζοντας τις αναφορές οδηγών με τις αυτόματες ανιχνεύσεις επιταχυνσιόμετρου από την εφαρμογή πλοήγησής μας.

GET https://nakordoni.eu/api/v1/data/road-conditions — κλάση ποσόστωσης: cheap

ΠαράμετροςΠεριγραφή
countryΚωδικός χώρας ISO (προαιρετικό)
ppidCheckpoint ID, e.g. id_13 (optional). Scopes the answer to that crossing's corridor: the last 50 km of the main road to it on BOTH sides of the border
condition_typepothole|speed_bump|roadwork|closure|hazard|ice|… (προαιρετικό)
severitylow|moderate|major|critical (προαιρετικό)
latΓεωγραφικό πλάτος (προαιρετικό)
lngΓεωγραφικό μήκος (προαιρετικό)
radiusΑκτίνα km (προεπιλογή 50)
sourcesall (default) | user (our own driver reports only) | external (road-authority and provider feeds only)
limitΜέγιστα αποτελέσματα (προεπιλογή 100, όριο 500)
offsetPagination offset (optional)
include_expired1 = also return conditions whose expiry has passed (optional)
langLanguage for condition_type_name / severity_name labels — all 24 site languages (default uk)

Πεδία της απάντησης — μέσα στο αντικείμενο data του φακέλου απάντησης. Το [] δηλώνει λίστα, άρα το data.items[].name είναι το πεδίο name κάθε στοιχείου. Ένα πεδίο είναι null, απουσιάζει ή είναι κενή λίστα όταν δεν έχουμε τιμή — ποτέ κάτι εικονικό.

ΠεδίοΠεριγραφή
data.conditions[].condition_typeWhat it is (roadworks, closure, accident, weather…), with condition_type_name in the requested language.
data.conditions[].severityHow bad it is, with severity_name.
data.conditions[].descriptionFree-text detail as published, with road_name and direction.
data.conditions[].latitudeWhere it is, with longitude and country_code.
data.conditions[].corridor_ppidThe border crossing whose approach corridor this sits on, when it is on one.
data.conditions[].estimated_durationHow long it is expected to last, with expires_at and created_at.
data.conditions[].sourceUpstream that reported it, with external_id — stable across refreshes, use it to deduplicate.
data.totalMatches for the query, with limit and offset for paging.
curl "https://nakordoni.eu/api/v1/data/road-conditions?ppid=id_13&lang=en" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Συνδεθείτε ως προγραμματιστής για να δοκιμάσετε ζωντανά αυτό το endpoint στο Sandbox — 50 δωρεάν δοκιμαστικές κλήσεις την ημέρα. Σύνδεση