An interactive web mapping application for the Pinellas Trail Challenge 46-mile ultramarathon, featuring aid stations, GPS route data, and downloadable resources.
- Multiple map styles: Outdoors, Standard, and Satellite views
- GPS route visualization: Complete 46-mile trail displayed as a blue line
- Auto-fit bounds: Map automatically centers on the full course
- Responsive design: Works seamlessly on desktop, tablet, and mobile
- 32 waypoints from start to finish with detailed information
- Color-coded markers:
- π’ Green: Start (Mile 0)
- π΄ Red: Finish (Mile 46)
- π Orange: Official aid stations
- π΅ Blue: Trail waypoints
- Interactive sidebar: Click any location to fly to it on the map
- Detailed information: Descriptions, amenities, timing, and cutoff data
- Sliding sidebar with hamburger menu on mobile devices
- Touch-friendly interactions optimized for phones and tablets
- Responsive breakpoints for different screen sizes
- Auto-close sidebar when interacting with map
- GPX file: Load the complete route into GPS devices or running apps
- CSV data: Aid station information for spreadsheets and planning tools
- A modern web browser
- Local web server (for file access)
- Mapbox access token
-
Clone or download this repository
-
Get a Mapbox token:
- Sign up at mapbox.com
- Create a new access token
- Replace
your_mapbox_access_token_herein.envwith your token
-
Start a local server:
# Using Python python -m http.server 8000 # Using Node.js npx http-server # Using PHP php -S localhost:8000
-
Open in browser: Navigate to
http://localhost:8000
pinellas-trail-challenge/
βββ index.html # Main application file
βββ ptc.gpx # GPS route data (903 track points)
βββ ptc-aid-locations.csv # Aid station and waypoint data
βββ ptc.jpg # Race logo
βββ .env # Mapbox access token (not in git)
βββ .gitignore # Git ignore file
βββ README.md # This file
- 46-mile route from St. Petersburg to Tarpon Springs and back
- 903 track points with precise GPS coordinates
- Generated from the official Pinellas Trail
- 32 locations including start, finish, aid stations, and waypoints
- Detailed information: Mile markers, descriptions, amenities
- Timing data: 12-minute pace estimates and cutoff times
- Logistics: Drop bag availability, gel stations, parking info
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- Mapping: Mapbox GL JS v3.0.1
- Responsive Design: CSS Grid, Flexbox, Media Queries
- Data Formats: GPX, CSV
- Icons: Inline SVG
- Outdoors: Topographic style perfect for trail visualization
- Standard: Clean, minimal style focusing on geography
- Satellite: Aerial imagery showing real-world context
- Mile marker position
- Location description
- Aid station availability (Y/N)
- Drop bag support (Y/N)
- HUMA gel availability (Y/N)
- GPS coordinates (lat/lon)
- Approximate address
- Cutoff times
- 12-minute pace arrival estimates
- Desktop (>768px): Full sidebar layout
- Tablet (β€768px): Responsive sizing with mobile toggle
- Phone (β€480px): Optimized touch interactions and stacked layouts
- Chrome: 88+ β
- Firefox: 85+ β
- Safari: 14+ β
- Edge: 88+ β
- Mobile browsers: iOS Safari 14+, Chrome Mobile 88+ β
- Lightweight: ~50KB total size (excluding map tiles)
- Fast loading: Embedded data, minimal external dependencies
- Offline-capable: Downloads work offline once loaded
- Mobile-optimized: Touch interactions and responsive images
This is a race-specific application, but improvements are welcome:
- Fork the repository
- Create a feature branch
- Make your changes
- Test on multiple devices/browsers
- Submit a pull request
Event: Pinellas Trail Challenge Ultramarathon
Distance: 46 miles
Date: August 30, 2025
Course: Out-and-back on the Pinellas Trail
Start/Finish: St. Petersburg to Tarpon Springs and back to Dunedin
This project is created for the Pinellas Trail Challenge community. The race logo and official data are property of the race organizers.
For technical issues with this mapping application, please open an issue in this repository.
For race-related questions, contact the official Pinellas Trail Challenge organizers.
Built with β€οΈ for the Pinellas Trail Challenge running community
