नज़दीकी फ्यूल स्टेशन API Online
किसी बिंदु या शहर के सबसे नज़दीकी पेट्रोल स्टेशन, प्रत्येक ईंधन प्रकार के मौजूदा दामों सहित, दूरी के अनुसार क्रमबद्ध। station-level कवरेज यूरोप के 39 देशों तक फैला है और यह MEASURED है, तय नहीं: हर खाली उत्तर coverage ऑब्जेक्ट में देशों की मौजूदा सूची, प्रत्येक देश के station की संख्या सहित, अनुरोधित ग्रेड तक सीमित करके लौटाता है — इसलिए इस विवरण में लिखी सूची के बजाय वही पढ़ें — यह nakordoni.eu के fuel पेजों जैसा ही डेटा है; अन्यत्र राष्ट्रीय औसत के लिए fuel API के country मोड का उपयोग करें। दाम प्रत्येक station की अपनी currency में लौटाए जाते हैं (पोलिश स्टेशनों के लिए PLN, बाकी जगह EUR) — प्रत्येक station का currency फ़ील्ड पढ़ें, कच्ची संख्याओं की कभी तुलना न करें। जब कोई station मेल नहीं खाता, तो उत्तर में चुपचाप खाली सूची के बजाय एक coverage ऑब्जेक्ट शामिल होता है: लाइव इंडेक्स से मापे गए station_countries और station_counts (fuel_type बताए जाने पर `grade` तक सीमित), 25 या उससे कम priced station वाले देशों के लिए sparse_coverage, measured_at, और एक fuel_type_note जो उत्तर के खाली होने के दो कारणों को अलग करता है — एक ग्रेड नाम जिसे हम पहचान नहीं पाए, बनाम एक ग्रेड जिसे हम पहचानते हैं लेकिन उस देश में जिसका दाम नहीं बताते।
GET https://nakordoni.eu/api/v2/data/fuel-stations
— कोटा श्रेणी: fuel
| पैरामीटर | विवरण |
|---|---|
lat | अक्षांश |
lon | देशांतर |
city | शहर का नाम — lat/lon का विकल्प, निर्देशांक में बदला जाता है |
country | ISO-2 देश कोड, शहर को स्पष्ट करता है |
radius_km | खोज त्रिज्या किमी में (डिफ़ॉल्ट 25, अधिकतम 25; उपनाम: radius) |
fuel_type | वैकल्पिक फ़िल्टर: diesel | e5 | e10 | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | adblue | e85 | lng (उपलब्धता स्टेशन/क्षेत्र के अनुसार बदलती है; पोलिश स्टेशन Pb95 को e5, Pb98 को superplus और ON को diesel के रूप में रिपोर्ट करते हैं)। स्थानीय पंप नाम भी स्वीकार किए जाते हैं — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — इन्हें `country` के सापेक्ष हल किया जाता है (या, निर्देशांक-आधारित उत्पादों में, उस देश के सापेक्ष जिसमें बिंदु पड़ता है), क्योंकि एक ही शब्द हर जगह एक ही ग्रेड नहीं होता: डेनिश, फ़िनिश, फ़्रेंच, ब्रिटिश, बेल्जियन या डच पंप पर “95” का अर्थ E10 है, जबकि पोलिश या जर्मन पंप पर E5। प्रतिक्रिया में `fuel_type` (कैनॉनिकल), `fuel_type_requested` (जैसा आपने लिखा) और `fuel_type_local` लौटाए जाते हैं। जिस नाम को हम पहचान नहीं पाते, उसे कभी किसी डिफ़ॉल्ट ग्रेड से नहीं बदला जाता — उत्तर खाली लौटता है और यही बताता है। देशवार नामों की पूरी तालिका: /api/v2/data/fuel-grades |
limit | अधिकतम स्टेशन (डिफ़ॉल्ट 5, अधिकतम 20) |
truck_friendly | Optional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored. |
lang | लेबल की भाषा (डिफ़ॉल्ट en) |
रिस्पॉन्स फ़ील्ड — रिस्पॉन्स एनवेलप के data ऑब्जेक्ट के भीतर। [] सूची दर्शाता है, यानी data.items[].name हर एलिमेंट का name फ़ील्ड है। जिस फ़ील्ड का मान हमारे पास नहीं है वह null होता है, आता ही नहीं या खाली सूची होती है — प्लेसहोल्डर कभी नहीं।
| फ़ील्ड | विवरण |
|---|---|
data.anchor.lat | The point actually searched (after city geocoding), with lng, ppid and radius_km. |
data.anchor.fuel_type | The canonical grade the list was filtered to; fuel_type_requested is what you sent, fuel_type_local the local pump name and fuel_type_country the country the name was read in. |
data.stations[].name | Station, with brand and address. Each physical station appears ONCE: its grades are nested under prices, not spread over repeated rows. `brand` is the chain when we know it and null when we do not — never a placeholder token, so treat null as "independent or unknown" and fall back to `name`. Address detail varies by national feed: some report a full street address, others only the town; where we hold only the town and a matched operator site record carries the street address, that street address is given. |
data.stations[].station_ref | Stable key for the station (name + position). Key your records on it whenever id is null — id is set only for rows that come from our station directory. |
data.stations[].prices | Object keyed by grade (diesel, e5, e10, lpg …): price, currency and currency_symbol, local_name (the pump name used in that country), label, updated_at, confirmed_at, age_hours and stale. Each station carries its own currency, so never compare the raw numbers across countries. Prices are always given in the currency of the station's country (PLN in Poland, CZK in Czechia, NOK in Norway, EUR in euro countries) — a border station that posts its price in a neighbour's currency is converted with the daily ECB rate. A station with no quote at all carries an empty object here. TWO CLOCKS, and they answer different questions — do not derive one from the other: `updated_at` is when this price last MOVED, so a forecourt that has held the same price for ten days keeps a ten-day-old stamp and that is correct, not stale data; `confirmed_at` is when we last CONFIRMED the quote against its feed, and it is the clock `age_hours` and `stale` are measured on (age_hours = now − confirmed_at). Read `confirmed_at`/`stale` for freshness and `updated_at` for price history. Both are floored to the hour, so `now − confirmed_at` can sit up to an hour above `age_hours`, which is measured before the floor; `confirmed_at` is never earlier than `updated_at`, because a price change is itself a confirmation. |
data.stations[].grades | The grade keys present in prices, alongside freshest_age_hours and a station-level stale flag (true only when NO quote of that station is current). |
data.stations[].truck_friendly | true when the station is flagged as usable by trucks, false when it is flagged as not usable, null when we hold no truck information for it (a matched operator site record that marks the site as truck-suitable, with truck parking or truck diesel fills a null with true). Filter with truck_friendly=1; combine with fuel_type=lng for truck LNG stations. |
data.stations[].details | Object, only on stations we could match to an operator site record (omitted otherwise, never empty): amenities (array of tokens for facilities held as PRESENT, never one listed as absent; same vocabulary as truck-parkings, e.g. toilets, shower, shop, food, restaurant, wifi, car_wash, washing, parking, truck_access, adblue, lpg, ev_charging, atm, accessible, open_24h), opening_hours ("24/7" when the site is open round the clock; absent otherwise) and services (English labels, e.g. "Truck parking"). The station-level `amenities` object (is_24h, has_shop, has_car_wash ...) is unchanged and stays where it was. |
data.stations[].distance_km | Distance from the anchor, with lat and lng of the station itself. |
data.count | Stations returned; data.total_found is how many matched inside the radius before limit was applied. |
data.notices | Present whenever we adjusted a parameter you sent: each entry names the param, the requested and the applied value, and the reason. |
data.coverage | Only when nothing matched. grade (the fuel_type your wording resolved to, or null), station_countries and station_counts measured from the live station index and scoped to that grade, sparse_coverage for countries with 25 priced stations or fewer, measured_at, a note explaining all of it, and fuel_type_note when the grade name could not be placed OR when we recognise the grade but price it nowhere in this country. |
data.empty_reason | Only when nothing matched — machine-readable why: no_station_in_radius (try a wider radius_km; see nearest_station_km) | no_price_for_fuel_type (stations in the radius, none quoting this grade) | fuel_type_not_priced_in_country (no feed prices this grade in `country`) | unknown_fuel_type | no_fresh_price_in_radius. The radius is never widened for you. |
data.suggestion | Only when nothing matched — one short sentence in your `lang` that turns empty_reason into advice, e.g. "No station within 5 km — the nearest is 6.4 km away; try radius_km=10." (the advised radius is rounded up to a 5 km step and never above the 25 km maximum), "We have no hvo prices in DE; try diesel, truckdiesel.", or the list of valid fuel_type values. Advice for people, not a contract: branch on empty_reason / nearest_station_km, show suggestion to users. |
data.nearest_station_km | Only when nothing matched — distance to the nearest station quoting the requested grade (any grade when none was named), searched up to data.nearest_search_km (50); null = none that close. |
data.country | Only when nothing matched — ISO-2 country of the point (your ?country= wins). |
मूल्य की आयु
स्टेशन मूल्यों की दो आयु सीमाएँ हैं, दोनों उस समय से गिनी जाती हैं जब हमने आख़िरी बार मूल्य की पुष्टि की (age_hours)। 7 दिन बाद मूल्य अब भी लौटाया जाता है, stale = true के साथ। 90 दिन बाद वह बिल्कुल नहीं लौटाया जाता (2026-10-24 से)। जिस ईंधन प्रकार का केवल ऐसा मूल्य है, वह तब prices में नहीं होता, जिस स्टेशन का कोई मूल्य नहीं बचा वह सूची में नहीं आता (या जहाँ बिना मूल्य वाले स्टेशन दिखाए जाते हैं वहाँ उसका prices ऑब्जेक्ट खाली होता है), और उत्तर खाली हो सकता है — तब empty_reason कारण बताता है। तब fuel-local क्षेत्र या देश स्तर से उत्तर दे सकता है। मूल्य इतिहास रखा जाता है; राष्ट्रीय और शहर औसत पर इसका असर नहीं पड़ता।
खाली उत्तर
जब कोई स्टेशन मेल नहीं खाता, तब भी उत्तर HTTP 200 के साथ खाली stations सूची होता है — और वह कारण भी बताता है। केवल खाली उत्तर में data में चार फ़ील्ड जुड़ते हैं: empty_reason (मशीन-पठनीय कारण), nearest_station_km (आपके ग्रेड वाले सबसे नज़दीकी स्टेशन की दूरी, खोज nearest_search_km = 50 km तक; न मिलने पर null), country (बिंदु का ISO-2 कोड) और suggestion (आपके lang में एक छोटा वाक्य)। हम आपके लिए त्रिज्या कभी नहीं बढ़ाते।
| empty_reason | विवरण |
|---|---|
no_station_in_radius | radius_km के भीतर वर्तमान कीमत वाला कोई स्टेशन नहीं है। nearest_station_km बताता है कि सबसे नज़दीकी स्टेशन कितनी दूर है (50 km के भीतर कोई न हो तो null)। |
no_price_for_fuel_type | त्रिज्या के भीतर स्टेशन हैं, लेकिन कोई भी आपके द्वारा मांगा गया fuel_type नहीं बताता। nearest_station_km वह सबसे नज़दीकी स्टेशन है जो इसे बताता है। |
fuel_type_not_priced_in_country | हम इस ग्रेड को पहचानते हैं, लेकिन इस देश में कोई भी स्टेशन फ़ीड इसकी कीमत नहीं देती (उदाहरण के लिए जर्मनी में HVO)। बड़ी त्रिज्या से मदद नहीं मिलेगी — कोई दूसरा ग्रेड मांगें। |
unknown_fuel_type | fuel_type का मिलान हमारे ज्ञात किसी भी ग्रेड से नहीं हो सका। suggestion मान्य मान सूचीबद्ध करता है; देश-वार स्थानीय पंप नाम /api/v2/data/fuel-grades में हैं। |
no_fresh_price_in_radius | त्रिज्या के भीतर के स्टेशनों की कीमतें इतनी पुरानी हैं कि उन्हें दिखाया नहीं जा सकता। थोड़ी बड़ी त्रिज्या आज़माएं या बाद में दोबारा कॉल करें। |
suggestion लोगों के लिए सलाह है, अनुबंध नहीं: इसका शब्दांकन बदल सकता है। अपना कोड empty_reason और nearest_station_km के आधार पर शाखित करें; suggestion अपने उपयोगकर्ताओं को दिखाएं या लॉग करें। सुझाई गई त्रिज्या 5 km के चरण तक ऊपर की ओर पूर्णांकित होती है और 25 km की अधिकतम सीमा से ऊपर कभी नहीं जाती।
ग्रिड स्वीप: यदि आप किसी क्षेत्र या मार्ग का ग्रिड पर नमूना लेते हैं, तो radius_km 10–15 उपयोग करें। 5 km पर अधिकांश ग्रामीण ग्रिड बिंदु स्टेशनों के बीच पड़ते हैं और खाली उत्तर (no_station_in_radius) लौटाते हैं, भले ही स्टेशन केवल कुछ किलोमीटर दूर हो।
उदाहरण: खाली उत्तर ?lat=47.73&lon=18.225&radius_km=5&fuel_type=diesel
{
"ok": true,
"data": {
"count": 0,
"stations": [],
"empty_reason": "no_station_in_radius",
"suggestion": "No station within 5 km — the nearest is 6.4 km away; try radius_km=10.",
"nearest_station_km": 6.4,
"nearest_search_km": 50,
"country": "HU",
"coverage": { "grade": "diesel", "station_countries": ["AT", "BE", "…"], "…": "…" }
}
}
curl "https://nakordoni.eu/api/v2/data/fuel-stations?city=Munich&country=DE&radius_km=20&fuel_type=diesel" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
अपडेट किया गया