Közeli töltőállomások API Online
A ponthoz vagy városhoz legközelebbi töltőállomások, aktuális áron üzemanyagfajtánként, távolság szerint rendezve. Az állomásszintű lefedettség 39 európai országra terjed ki, és MÉRT érték, nem rögzített: minden üres válasz visszaadja az aktuális országlistát a coverage objektumban szereplő országonkénti állomásszámmal, a kért fajtára szűkítve — ezt olvassa, ne a leírásban szereplő listát — ugyanazok az adatok, mint a nakordoni.eu üzemanyag-oldalain; más esetekben az országos átlagokhoz a fuel API country módját használja. Az árak minden állomás saját pénznemében jelennek meg (PLN a lengyel állomásoknál, EUR máshol) — olvassa az adott állomás currency mezőjét, soha ne hasonlítsa össze a nyers számokat. Ha egyetlen állomás sem felel meg, a válasz egy coverage objektumot tartalmaz néma üres lista helyett: station_countries és station_counts az élő indexből mérve (a `grade`-re szűkítve, ha fuel_type-ot adott meg), sparse_coverage azokra az országokra, ahol 25 vagy annál kevesebb árazott állomás van, measured_at, valamint egy fuel_type_note, amely elválasztja az üres válasz két lehetséges okát — egy olyan fajtanevet, amelyet nem sikerült beazonosítani, egy olyan fajtától, amelyet felismerünk, de az adott országban nem árazunk.
GET https://nakordoni.eu/api/v2/data/fuel-stations
— kvótaosztály: fuel
| Paraméter | Leírás |
|---|---|
lat | Szélesség |
lon | Hosszúság |
city | Város neve — a lat/lon alternatívája, koordinátákká alakítva |
country | ISO-2 országkód, egyértelműsíti a várost |
radius_km | Keresési sugár km-ben (alapértelmezett 25, max. 25; alias: radius) |
fuel_type | Opcionális szűrő: diesel | e5 | e10 | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | adblue | e85 | lng (az elérhetőség töltőállomásonként/régiónként változik; a lengyel töltőállomások a Pb95-öt e5-ként, a Pb98-at superplus-ként, az ON-t pedig diesel-ként jelentik). A helyi kúti megnevezéseket is elfogadjuk — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … —, ezeket a `country` alapján oldjuk fel (koordinátás termékeknél pedig azon ország alapján, amelybe a pont esik), mert ugyanaz a megnevezés nem mindenhol ugyanazt a fajtát jelenti: a „95” dán, finn, francia, brit, belga vagy holland kúton E10, lengyel vagy német kúton viszont E5. A válasz visszaadja a `fuel_type` (kanonikus), a `fuel_type_requested` (ahogy Ön beírta) és a `fuel_type_local` mezőket. Az általunk nem azonosítható megnevezést soha nem cseréljük alapértelmezett fajtára — a válasz üresen tér vissza, és ezt jelzi is. A megnevezések teljes, országonkénti táblázata: /api/v2/data/fuel-grades. |
limit | Kutak maximuma (alapértelmezett 5, max. 20) |
truck_friendly | Optional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored. |
lang | A címkék nyelve (alapértelmezett: en) |
Válaszmezők — a válaszboríték data objektumán belül. A [] listát jelöl, tehát a data.items[].name az egyes elemek name mezője. Egy mező null, hiányzik vagy üres lista, ha nincs rá értékünk — helykitöltőt soha nem teszünk oda.
| Mező | Leírás |
|---|---|
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). |
Az ár kora
A kúti áraknak két korhatára van, mindkettőt attól számítjuk, amikor utoljára megerősítettük az árat (age_hours). 7 nap után az árat még visszaadjuk, stale = true jelzéssel. 90 nap után egyáltalán nem adjuk vissza (2026-10-24 óta). Az az üzemanyagfajta, amelynek csak ilyen ára van, ekkor hiányzik a prices mezőből, az ár nélkül maradt kút nem szerepel a listában (vagy üres prices objektumot kap ott, ahol ár nélküli kutak is megjelennek), a válasz pedig üres lehet — ekkor az empty_reason adja meg az okot. A fuel-local ilyenkor régiós vagy országos szintről válaszolhat. Az ártörténetet megőrizzük; az országos és városi átlagokat ez nem érinti.
Üres válaszok
Ha egyetlen kút sem felel meg, a válasz akkor is HTTP 200, üres stations listával — és megmondja az okát. Kizárólag üres válasz esetén négy mező kerül a data-ba: empty_reason (gépi olvasásra szánt ok), nearest_station_km (a legközelebbi, az Ön típusát áruló kút távolsága, nearest_search_km = 50 km-ig keresve; null, ha nincs), country (a pont ISO-2 kódja) és suggestion (egyetlen rövid mondat az Ön lang nyelvén). A sugarat soha nem növeljük meg Ön helyett.
| empty_reason | Leírás |
|---|---|
no_station_in_radius | Nincs aktuális árral rendelkező kút a radius_km sugarán belül. A nearest_station_km megadja, milyen messze van a legközelebbi (null, ha 50 km-en belül nincs ilyen). |
no_price_for_fuel_type | A sugáron belül vannak kutak, de egyik sem adja meg a kért fuel_type árát. A nearest_station_km a legközelebbi olyan kút távolsága, amely megadja. |
fuel_type_not_priced_in_country | Ismerjük az üzemanyagtípust, de egyetlen kútadat-forrás sem ad rá árat ebben az országban (például HVO Németországban). Nagyobb sugár nem segít — kérjen másik típust. |
unknown_fuel_type | A fuel_type nem feleltethető meg egyetlen ismert üzemanyagtípusnak sem. A suggestion felsorolja az érvényes értékeket; az országonkénti helyi kútnevek a /api/v2/data/fuel-grades címen érhetők el. |
no_fresh_price_in_radius | A sugáron belüli kutak csak olyan árakkal rendelkeznek, amelyek túl régiek a kiszolgáláshoz. Próbáljon valamivel nagyobb sugarat, vagy hívja újra később. |
A suggestion embereknek szóló tanács, nem szerződés: a megfogalmazása változhat. A kódját az empty_reason és a nearest_station_km alapján ágaztassa el; a suggestion-t jelenítse meg a felhasználóknak, vagy naplózza. A javasolt sugarat 5 km-es lépésre kerekítjük felfelé, és sosem haladja meg a 25 km-es maximumot.
Rácsos lekérdezés: Ha egy területet vagy útvonalat rácson mintavételez, használjon 10–15 közötti radius_km értéket. 5 km-nél a vidéki rácspontok többsége kutak közé esik, és üres választ ad (no_station_in_radius), még akkor is, ha a legközelebbi kút csak néhány kilométerre van.
Példa: üres válasz ?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"
Frissítve