Wikipedia articles along the ridden route
The Lovelace card now offers a 📚 toggle next to the OSM/GPX/fullscreen buttons. When activated, the route is sampled every 2 km along the actual driven distance and the Wikipedia API is queried for nearby articles. Each match shows up as a small (i) marker on the map.
Click any marker to see a popup with:
- Article title
- Thumbnail image (when available)
- Short summary (loaded lazily via Wikipedia REST API)
- A link to open the full article on Wikipedia
Behaviour
- Layer is off by default; toggle state persists in your browser's localStorage
- Language follows your Home Assistant locale (fallback to English if no results)
- Up to 30 markers per ride, deduplicated by article pageId
- Results are cached per activity in localStorage so subsequent loads are instant
- All API calls go directly from the browser to Wikipedia (CORS) — no backend changes
Privacy note
When the layer is active, sample coordinates of the route are sent to the Wikipedia API. The layer is therefore off by default and the user must opt-in.
Installation
Update via HACS, restart Home Assistant, then hard-refresh the browser (Ctrl+Shift+R / ⌘⇧R) so the new card JS loads.