समाचार सबमिशन और NakBus फ्लीट अब पार्टनर डैशबोर्ड में हैं
अपने डेवलपर खाते को उसी ईमेल वाले Nakordoni Partners खाते से कनेक्ट करें और वहाँ समाचार और अपने बस बेड़े (NakDriver / NakManager) को टीम भूमिकाओं के साथ प्रबंधित करें। आपकी API कुंजियाँ, एंडपॉइंट और ऐप्स अपरिवर्तित रहते हैं, और यहाँ के पेज काम करना जारी रखते हैं। Nakordoni Partners खोलें

← सभी एंडपॉइंट

सड़क स्थिति API Online

सीमाओं के पास और प्रमुख गलियारों पर अनुमोदित सड़क स्थिति रिपोर्ट: गड्ढे, सड़क कार्य, बंदी, बर्फ, खतरे — ड्राइवर रिपोर्ट को हमारे नेविगेशन ऐप से स्वचालित एक्सेलेरोमीटर पहचान के साथ संयोजित करती है।

GET https://nakordoni.eu/api/v1/data/road-conditions — कोटा श्रेणी: cheap

पैरामीटरविवरण
countryISO देश कोड (वैकल्पिक)
ppidचौकी ID, उदा. id_13 (वैकल्पिक)। उत्तर को उस क्रॉसिंग के कॉरिडोर तक सीमित करता है: सीमा के दोनों ओर उस तक जाने वाली मुख्य सड़क के अंतिम 50 किमी
condition_typepothole|speed_bump|roadwork|closure|hazard|ice|… (वैकल्पिक)
severitylow|moderate|major|critical (वैकल्पिक)
latअक्षांश (वैकल्पिक)
lngदेशांतर (वैकल्पिक)
radiusत्रिज्या किमी (डिफ़ॉल्ट 50)
sourcesall (डिफ़ॉल्ट) | user (केवल हमारे अपने ड्राइवरों की रिपोर्ट) | external (केवल सड़क प्राधिकरण और प्रदाता फ़ीड)
limitअधिकतम परिणाम (डिफ़ॉल्ट 100, सीमा 500)
offsetपेजिनेशन ऑफ़सेट (वैकल्पिक)
include_expired1 = वे स्थितियाँ भी लौटाएँ जिनकी अवधि समाप्त हो चुकी है (वैकल्पिक)
langcondition_type_name / severity_name लेबल की भाषा — साइट की सभी 24 भाषाएँ (डिफ़ॉल्ट 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[].external_idOpaque stable id of a feed incident ("rc_" + 16 hex, null for our own driver reports) — the same incident keeps it across polls, use it to deduplicate. id is a stable int.
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"
🔑 इस एंडपॉइंट को सैंडबॉक्स में लाइव आज़माने के लिए डेवलपर के रूप में लॉग इन करें — प्रतिदिन 50 निःशुल्क टेस्ट कॉल। लॉग इन

अपडेट किया गया