Speed radars announced in Spain, as Home Assistant zones that warn you
194
Radares Anunciados is a Docker service that gathers the speed radars announced in Spain into one open GeoJSON feed. Its Home Assistant side turns the radars near you into zones, so the Home Assistant companion app alerts you when you drive toward one.
export HA_URL=https://homeassistant.example.org HA_TOKEN='<long-lived token>'
docker run --rm -e HA_URL -e HA_TOKEN drumsergio/radares-anunciados:0.2.0 sync --dry-run
mkdir -p data && sudo chown 65534:65534 data # the container runs as nobody
docker run -d --name radares -e HA_URL -e HA_TOKEN -v ./data:/data -e RADARES_CACHE=/data drumsergio/radares-anunciados:0.2.0
Then import the alert blueprint. Full steps in Getting started.
Every 6 hours a GitHub Actions run builds the feed for all of Spain from every source and publishes it on GitHub Pages, at geiserx.github.io/radares-anunciados:
feed.geojson: every radar as a point and every
watched stretch as a line, each with its source, attribution, limit and linkstatus.json: per source, ok, stale (this run
failed, its last good copy is used) or missing, with record counts and the time of its dataThe feed includes OpenStreetMap data, so the database is offered under
ODbL 1.0 with each source's attribution: see
LICENSE-DATA.md. The run happens outside Spain, so a source that answers only Spanish
addresses shows as missing there. How it works has the details.
| Source | License |
|---|---|
| DGT NAP: fixed radars, sections and mobile-radar stretches | Creative Commons Attribution |
| Servei Català de Trànsit: fixed, section and trailer radars | Llicència oberta d'ús d'informació – Catalunya |
| Madrid and Salamanca open data | CC BY 4.0; GNU FDL |
| Basque and Navarra governments, Donostia, Murcia and León councils | no reuse terms published |
| OpenStreetMap contributors: cameras, speed limits, street geometry | ODbL 1.0 |
The full table, with cadence and which sources need a Spanish IP, is in docs/sources.md.
In Spain, RGC art. 18.3 bans radar jammers and radar detectors in a vehicle, and excludes from that ban the warning mechanisms that report where traffic enforcement systems are. Radar positions here come only from published lists and maps, so this project is one of those warning mechanisms.
Code: GPL-3.0-or-later. Data in the published feed: ODbL 1.0.
Content type
Image
Digest
sha256:1b56893d9…
Size
65.6 MB
Last updated
1 day ago
docker pull drumsergio/radares-anunciados