plopesc/marathon-bcn-tracker

โ˜… 0Forks 0HTMLGitHub โ†—Compare

README

๐Ÿƒ Zรผrich Maratรณ Barcelona 2026

Pace calculator with official GPX map โ€” installable PWA for Android & iOS

Live app โ†’ plopesc.github.io/marathon-bcn-tracker

PWA GPX License


What is this?

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.


Features

  • ๐ŸŽš๏ธ 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)

Screenshots

Calculator Map
Pace sliders, split table and gel plan on the left panel Official GPX route with dynamic markers on the right

๐Ÿ“ฑ Install as an app

Android (Chrome)

  1. Open plopesc.github.io/marathon-bcn-tracker in Chrome
  2. Tap the Install banner at the bottom, or go to menu โ‹ฎ โ†’ Add to home screen
  3. The app installs with its own icon and runs without a browser bar

iOS (Safari)

  1. Open plopesc.github.io/marathon-bcn-tracker in Safari
  2. Tap the share button โŽ™
  3. Select Add to Home Screen โ†’ Add

๐Ÿ“ Repository structure

/
โ”œโ”€โ”€ 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

๐Ÿ—บ๏ธ Course data

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.


๐Ÿš€ Deploy your own copy to GitHub Pages

  1. Fork or clone this repository
  2. Go to Settings โ†’ Pages
  3. Set Source โ†’ Branch: main, Folder: / (root) โ†’ Save
  4. 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.


๐Ÿค– Built with Claude

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.


๐Ÿ“„ License

MIT โ€” free to use, modify and distribute.

Contributors

plopesc

Issues