Open-source fuel & EV route planner. Real-time prices across 36 countries. Self-hostable.
Try it now at pumperly.com — or self-host it with Docker Compose.
Pumperly combines route planning with real-time fuel prices and EV charging station data. No other open-source tool does this.
| Country | Source | Type | Update |
|---|---|---|---|
| Spain | MITECO | Government API | Every 12h |
| France | prix-carburants.gouv.fr | Government API | Hourly |
| Germany | Tankerkoenig (MTS-K) | Government API | Hourly |
| Italy | MIMIT | Government CSV | Every 12h |
| Austria | E-Control | Government API | Every 2h |
| UK | CMA Open Data | Government feeds | Every 4h |
| Portugal | DGEG | Government API | Every 12h |
| Slovenia | goriva.si | Government API | Every 6h |
| Netherlands | ANWB | Commercial API | Every 6h |
| Belgium | ANWB | Commercial API | Every 6h |
| Luxembourg | ANWB | Commercial API | Every 12h |
| Romania | Peco Online | Community | Every 12h |
| Greece | FuelGR | Community API | Every 12h |
| Ireland | Pick A Pump | Community API | Every 12h |
| Croatia | MZOE | Government API | Every 12h |
| Denmark | FuelPrices.dk | Commercial API | Every 6h |
| Norway | DrivstoffAppen | Government-mandated | Every 6h |
| Sweden | Drivstoffappen | Community | Every 12h |
| Serbia | NIS / cenagoriva | Brand-level | Every 12h |
| Finland | polttoaine.net | Community | Every 12h |
| Switzerland, Poland, Czech Republic, Hungary, Bulgaria, Slovakia, Estonia, Latvia, Lithuania, Bosnia, North Macedonia | Fuelo.net | Community | Every 12h |
| Turkey | Fuelo.net | Community | Every 12h |
| Moldova | ANRE | Government | Every 12h |
| Australia (WA + NSW) | FuelWatch / FuelCheck | Government API | Every 12h |
| Argentina | Secretaria de Energia | Government API | Every 12h |
| Mexico | CRE | Government API | Every 12h |
| Source | Coverage | License |
|---|---|---|
| Open Charge Map | All supported countries + United States (EV-only) | ODbL |
| Mapa REVE (Red Eléctrica de España) | Spain — official operator-reported registry | Non-commercial, attribution required |
| Ladesäulenregister (Bundesnetzagentur) | Germany — official operator-reported registry, ~74,000 locations | CC BY 4.0, attribution "Bundesnetzagentur.de" |
Spain uses Mapa REVE when PUMPERLY_REVE_API_KEY is set: it is the registry every Spanish charge point operator files into, so it is authoritative where Open Charge Map is crowdsourced. The two overlap heavily, so Open Charge Map stops being scraped for Spain immediately, its existing Spanish rows stay visible while REVE backfills, and they are deleted once REVE reaches 95% of the registry. Expect duplicate Spanish pins until then.
Germany uses the BNetzA Ladesäulenregister by default — no API key, no signup. Every operator of a publicly accessible charge point must file into it under §5 Ladesäulenverordnung, so like REVE it is authoritative where Open Charge Map is crowdsourced, and it is several times larger. It arrives as one daily bulk file, so there is no backfill period: Open Charge Map stops being scraped for Germany, and its existing German rows are retired on the first healthy run. Set PUMPERLY_DE_EV_SOURCE=ocm to keep Open Charge Map instead.
| Service | Purpose | License |
|---|---|---|
| OpenStreetMap via OpenFreeMap | Map tiles | ODbL |
| Valhalla | Route calculation | MIT |
| Photon (Komoot/OSM) | Geocoding / address search | Apache 2.0 |
Pumperly is designed to be self-hosted. The full stack runs as four Docker containers.
┌─────────────────────────────────────────────────────────┐
│ docker compose up -d │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐ │
│ │ App │ │ PostGIS │ │ Valhalla │ │ Photon │ │
│ │ Next.js │ │ 17-3.4 │ │ 3.5.1 │ │ 1.0.1 │ │
│ │ :3000 │ │ :5432 │ │ :8002 │ │ :2322 │ │
│ └──────────┘ └──────────┘ └──────────┘ └────────┘ │
│ ▲ ▲ ▲ ▲ │
│ └─────────────┴─────────────┴────────────┘ │
│ internal network │
└─────────────────────────────────────────────────────────┘
| Resource | First-time build | Steady state |
|---|---|---|
| RAM | ~24 GB (Valhalla tile build peaks at ~15 GB) | 6-8 GB |
| Disk | ~300 GB (Photon imports + Valhalla tiles) | ~100 GB |
| CPU | Multi-core recommended for tile building | Any |
git clone https://github.com/GeiserX/pumperly.git
cd pumperly
cp .env.example .env
# Edit .env — see "Configuration" below
docker compose -f docker/docker-compose.yml up -d
Open http://localhost:3000 once all services are healthy. Station data will begin populating automatically.
A Helm chart is also available for Kubernetes deployments. See the chart documentation for the full values reference.
helm repo add pumperly https://geiserx.github.io/Pumperly
helm install pumperly pumperly/pumperly
Each service has a one-time initialization step. Subsequent starts are fast.
| Service | First start | Time | Subsequent starts |
|---|---|---|---|
| PostGIS | Creates database + extensions | Instant | Ready immediately |
| App | Runs Prisma migrations, starts scraping stations | ~1 min | Ready immediately |
| Valhalla | Downloads OSM PBF extracts + builds routing tiles | 3-6 hours | Loads pre-built tiles (~2 GB RAM) |
| Photon | Downloads Photon JAR + country geocoding dumps, imports them | 20+ hours | Starts with existing index (~3 GB RAM) |
Tip: Photon imports countries sequentially. The first country (Spain by default) is imported before the server starts, so geocoding works within ~30 minutes. Remaining countries are imported in the background while the server runs.
Valhalla builds routing graph tiles from OpenStreetMap PBF extracts. The docker-compose uses gis-ops/docker-valhalla which handles everything automatically.
How it works:
tile_urlsCustomizing countries:
tile_urls environment variable accepts a comma-separated list of PBF URLs from Geofabriktile_urls=https://download.geofabrik.de/europe/spain-latest.osm.pbf,https://download.geofabrik.de/europe/france-latest.osm.pbf
tile_urls=https://download.geofabrik.de/europe-latest.osm.pbf (requires ~50 GB RAM for tile build)tile_urls, delete the valhalla volume to trigger a rebuildResource usage:
Photon provides address autocomplete and geocoding, built on OpenStreetMap data via Komoot.
How it works:
Customizing countries:
COUNTRIES variable in the Photon entrypoint to match your enabled countriesLANGS variable controls which languages are indexed (affects search quality and disk usage)Resource usage:
The provided docker/docker-compose.yml includes a minimal setup (PostGIS only). For a full production deployment, use this complete configuration:
services:
db:
image: postgis/postgis:17-3.4
container_name: pumperly-db
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pumperly"]
interval: 10s
timeout: 5s
retries: 5
environment:
TZ: Europe/Madrid # Your timezone
POSTGRES_DB: pumperly
POSTGRES_USER: pumperly
POSTGRES_PASSWORD: changeme # CHANGE THIS
volumes:
- pumperly-pgdata:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 2G
valhalla:
image: ghcr.io/gis-ops/docker-valhalla/valhalla:3.5.1
container_name: pumperly-valhalla
restart: unless-stopped
environment:
TZ: Europe/Madrid
use_tiles_ignore_pbf: "False"
serve_tiles: "True"
build_elevation: "False"
build_admins: "True"
build_time_zones: "True"
build_transit: "False"
server_threads: "4" # Adjust to your CPU count
# Comma-separated PBF URLs from https://download.geofabrik.de/
# Add/remove countries as needed:
tile_urls: >-
https://download.geofabrik.de/europe/spain-latest.osm.pbf,
https://download.geofabrik.de/europe/france-latest.osm.pbf,
https://download.geofabrik.de/europe/portugal-latest.osm.pbf,
https://download.geofabrik.de/europe/italy-latest.osm.pbf,
https://download.geofabrik.de/europe/austria-latest.osm.pbf,
https://download.geofabrik.de/europe/germany-latest.osm.pbf,
https://download.geofabrik.de/europe/great-britain-latest.osm.pbf,
https://download.geofabrik.de/europe/slovenia-latest.osm.pbf,
https://download.geofabrik.de/europe/netherlands-latest.osm.pbf,
https://download.geofabrik.de/europe/belgium-latest.osm.pbf,
https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf,
https://download.geofabrik.de/europe/romania-latest.osm.pbf,
https://download.geofabrik.de/europe/greece-latest.osm.pbf,
https://download.geofabrik.de/europe/ireland-and-northern-ireland-latest.osm.pbf,
https://download.geofabrik.de/europe/croatia-latest.osm.pbf,
https://download.geofabrik.de/europe/switzerland-latest.osm.pbf,
https://download.geofabrik.de/europe/poland-latest.osm.pbf,
https://download.geofabrik.de/europe/czech-republic-latest.osm.pbf,
https://download.geofabrik.de/europe/hungary-latest.osm.pbf,
https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf,
https://download.geofabrik.de/europe/slovakia-latest.osm.pbf,
https://download.geofabrik.de/europe/denmark-latest.osm.pbf,
https://download.geofabrik.de/europe/sweden-latest.osm.pbf,
https://download.geofabrik.de/europe/norway-latest.osm.pbf,
https://download.geofabrik.de/europe/serbia-latest.osm.pbf,
https://download.geofabrik.de/europe/finland-latest.osm.pbf,
https://download.geofabrik.de/europe/estonia-latest.osm.pbf,
https://download.geofabrik.de/europe/latvia-latest.osm.pbf,
https://download.geofabrik.de/europe/lithuania-latest.osm.pbf,
https://download.geofabrik.de/europe/bosnia-herzegovina-latest.osm.pbf,
https://download.geofabrik.de/europe/macedonia-latest.osm.pbf
volumes:
- pumperly-valhalla:/custom_files
deploy:
resources:
limits:
memory: 24G # 24 GB for tile build, ~2 GB at runtime
reservations:
memory: 4G
photon:
image: eclipse-temurin:21-jre
container_name: pumperly-photon
restart: unless-stopped
working_dir: /photon
entrypoint: ["/bin/bash", "-c"]
command:
- |
set -e
LANGS="es,en,fr,de,it,pt,sl,nl,ro,el,ga,hr,pl,cs,hu,bg,sk,da,sv,no,sr,fi"
BASE="https://download1.graphhopper.com/public/europe"
if [ ! -f /photon/photon.jar ]; then
echo "Downloading Photon 1.0.1 JAR..."
apt-get update -qq && apt-get install -y -qq --no-install-recommends wget zstd >/dev/null 2>&1
wget -q "https://github.com/komoot/photon/releases/download/1.0.1/photon-1.0.1.jar" -O /photon/photon.jar
fi
# Phase 1: Import first country so search works quickly
if [ ! -f /photon/.imported_spain ]; then
apt-get update -qq 2>/dev/null; apt-get install -y -qq --no-install-recommends wget zstd >/dev/null 2>&1
echo "Downloading Spain dump..."
wget -q -O /photon/spain.jsonl.zst "$BASE/spain/photon-dump-spain-1.0-latest.jsonl.zst"
zstd -dc /photon/spain.jsonl.zst > /photon/spain.jsonl
rm -f /photon/spain.jsonl.zst
echo "Importing Spain..."
java -Xmx3g -jar /photon/photon.jar import -import-file /photon/spain.jsonl -languages $LANGS
rm -f /photon/spain.jsonl
touch /photon/.imported_spain
echo "Spain import done."
fi
# Phase 2: Import remaining countries in background after server starts
if [ ! -f /photon/.import_done ]; then
apt-get update -qq 2>/dev/null; apt-get install -y -qq --no-install-recommends wget zstd >/dev/null 2>&1
(
sleep 5
# Add/remove countries to match your PUMPERLY_ENABLED_COUNTRIES:
COUNTRIES="france-monacco portugal italy austria germany british-islands slovenia netherlands belgium luxemburg romania greece ireland croatia switzerland poland czech-republic hungary bulgaria slovakia denmark sweden norway serbia finland estonia latvia lithuania bosnia-herzegovina macedonia"
for country in $COUNTRIES; do
if [ -f /photon/.imported_$country ]; then continue; fi
echo "[bg] Downloading $country..."
wget -q -O "/photon/$country.jsonl.zst" "$BASE/$country/photon-dump-$country-1.0-latest.jsonl.zst"
zstd -dc "/photon/$country.jsonl.zst" > "/photon/$country.jsonl"
rm -f "/photon/$country.jsonl.zst"
echo "[bg] Importing $country..."
java -Xmx3g -jar /photon/photon.jar import -import-file "/photon/$country.jsonl" -languages $LANGS
rm -f "/photon/$country.jsonl"
touch "/photon/.imported_$country"
echo "[bg] $country done."
done
touch /photon/.import_done
echo "[bg] All countries imported."
) &
fi
exec java -jar /photon/photon.jar serve -languages $LANGS -listen-ip 0.0.0.0 -cors-any
volumes:
- pumperly-photon:/photon
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 2G
app:
image: drumsergio/pumperly:latest
container_name: pumperly
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
TZ: Europe/Madrid
DATABASE_URL: postgresql://pumperly:changeme@pumperly-db:5432/pumperly
PUMPERLY_DEFAULT_COUNTRY: ES
PUMPERLY_ENABLED_COUNTRIES: ES,FR,PT,IT,AT,DE,GB,SI,NL,BE,LU,RO,GR,IE,HR,CH,PL,CZ,HU,BG,SK,DK,SE,NO,RS,FI,EE,LV,LT,BA,MK
VALHALLA_URL: http://pumperly-valhalla:8002
PHOTON_URL: http://pumperly-photon:2322
PUMPERLY_CLUSTER_STATIONS: "true"
PUMPERLY_PRICE_MIN: "0.30"
PUMPERLY_PRICE_MAX: "4.00"
# API keys — get your own:
# TANKERKOENIG_API_KEY: "" # https://creativecommons.tankerkoenig.de
# PUMPERLY_OCM_API_KEY: "" # https://openchargemap.org (free, for EV data)
# PUMPERLY_REVE_API_KEY: "" # https://www.mapareve.es/api-contacto (free, Spain EV)
# FUELPRICES_DK_API_KEY: "" # Denmark fuel prices
ports:
- "3000:3000"
deploy:
resources:
limits:
memory: 512M
volumes:
pumperly-pgdata:
pumperly-valhalla:
pumperly-photon:
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | PostGIS connection string | Required |
PUMPERLY_DEFAULT_COUNTRY | ISO code for initial map view | ES |
PUMPERLY_ENABLED_COUNTRIES | Comma-separated ISO codes to enable | All |
PUMPERLY_DEFAULT_FUEL | Override default fuel type | Per-country |
PUMPERLY_CLUSTER_STATIONS | Enable map marker clustering | true |
PUMPERLY_PRICE_MIN / PUMPERLY_PRICE_MAX | Price bounds for scraper validation (EUR/L) | 0.30 / 4.00 |
PUMPERLY_SCRAPE_INTERVAL_HOURS | Global scrape interval override (hours, 0=disable) | Per-country |
PUMPERLY_EV_ENABLED | Enable EV charger scraping (0 to disable) | 1 |
PUMPERLY_DE_EV_SOURCE | Germany's EV source: bnetza (official registry) or ocm | bnetza |
PUMPERLY_BNETZA_MIN_STATIONS | Stations a run must refresh before the BNetzA scraper prunes stale rows or retires Open Charge Map's German ones | 10000 |
VALHALLA_URL | Valhalla routing endpoint | — |
PHOTON_URL | Photon geocoding endpoint | — |
Some data sources require API keys (all free):
| Key | Source | How to get it |
|---|---|---|
TANKERKOENIG_API_KEY | Germany fuel prices | Register at creativecommons.tankerkoenig.de |
PUMPERLY_OCM_API_KEY | EV charging stations | Register at openchargemap.org, go to My Profile > My API Keys |
PUMPERLY_REVE_API_KEY | Spain EV chargers (official registry) | Request at mapareve.es/api-contacto. Keys expire after about a year. The API allows 5 requests/hour, so the first full load takes about 37 hours at the default 4 pages per run, and fills in the background. |
FUELPRICES_DK_API_KEY | Denmark fuel prices | Contact fuelprices.dk |
Most countries work without any API key — they use open government data.
Europe (31): ES (Spain), FR (France), DE (Germany), IT (Italy), GB (United Kingdom), AT (Austria), PT (Portugal), SI (Slovenia), NL (Netherlands), BE (Belgium), LU (Luxembourg), RO (Romania), GR (Greece), IE (Ireland), HR (Croatia), CH (Switzerland), PL (Poland), CZ (Czech Republic), HU (Hungary), BG (Bulgaria), SK (Slovakia), DK (Denmark), SE (Sweden), NO (Norway), RS (Serbia), FI (Finland), EE (Estonia), LV (Latvia), LT (Lithuania), BA (Bosnia and Herzegovina), MK (North Macedonia)
Other regions (5): TR (Turkey), MD (Moldova), AU (Australia), AR (Argentina), MX (Mexico)
Valhalla and Photon are optional. Without them:
Just omit VALHALLA_URL and PHOTON_URL from your environment.
git clone https://github.com/GeiserX/pumperly.git
cd pumperly
npm install
cp .env.example .env
# Start PostGIS:
docker compose -f docker/docker-compose.yml up -d
# Generate Prisma client + push schema:
npx prisma generate && npx prisma db push
# Seed data for one country:
npm run scraper:run -- --country=ES
# Start dev server:
npm run dev
Open http://localhost:3000.
| Script | Description |
|---|---|
npm run dev | Start Next.js dev server |
npm run build | Production build |
npm run start | Start production server |
npm run lint | Run ESLint |
npm run scraper:run -- --country=XX | Run scraper for a country (or --country=all) |
Content type
Image
Digest
sha256:c2c776b15…
Size
67.8 MB
Last updated
about 15 hours ago
docker pull drumsergio/pumperly