Pace calculator with official GPX map โ installable PWA for Android & iOS
Live app โ plopesc.github.io/marathon-bcn-tracker
A Progressive Web App (PWA) to plan your race strategy for the Zรผrich Maratรณ Barcelona 2026 (March 15, 2026). It combines a real-time pace calculator with the official GPX course overlaid on an interactive map โ all in a single HTML file, no backend needed.
- ๐๏ธ Pace sliders โ configure your target pace for each segment (km 0โ20, 21โ30, 31โ42) and see results update instantly
- ๐บ๏ธ Live map โ official GPX route with split markers repositioned dynamically as you adjust paces
- โฑ๏ธ Split times โ every 5 km plus the half marathon mark, recalculated in real time
- ๐ฌ Gel plan โ configurable interval (15โ60 min), with markers placed on the exact km of the route
- ๐ Spanish / English โ language switcher in the top bar
- ๐ด Works offline โ Service Worker caches all assets on first load
- ๐ฑ Installable โ add to home screen on Android (Chrome) and iOS (Safari)
| Calculator | Map |
|---|---|
| Pace sliders, split table and gel plan on the left panel | Official GPX route with dynamic markers on the right |
- Open plopesc.github.io/marathon-bcn-tracker in Chrome
- Tap the Install banner at the bottom, or go to menu โฎ โ Add to home screen
- The app installs with its own icon and runs without a browser bar
- Open plopesc.github.io/marathon-bcn-tracker in Safari
- Tap the share button โ
- Select Add to Home Screen โ Add
/
โโโ index.html # Full application โ single self-contained file
โโโ manifest.json # PWA manifest (name, icons, theme colour)
โโโ sw.js # Service Worker (offline cache)
โโโ icon-192.svg # App icon 192 ร 192
โโโ icon-512.svg # App icon 512 ร 512
โโโ README.md # This file
The GPX file is the official Zรผrich Maratรณ Barcelona 2026 track, published by RPM Sports on Strava. Split times and gel waypoints are computed dynamically against the real accumulated distance using the Haversine formula.
- Fork or clone this repository
- Go to Settings โ Pages
- Set Source โ Branch:
main, Folder:/ (root)โ Save - Your app will be live at
https://YOUR-USERNAME.github.io/REPO-NAME/
GitHub Pages provides HTTPS automatically, which is required for the Service Worker to activate.
This app was built with the help of Claude by Anthropic โ from the pace calculator logic and GPX parsing, to the interactive map, PWA setup, multilingual support and these very icons.
MIT โ free to use, modify and distribute.