Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.

remisalmon/Strava-local-heatmap-browser

Repository files navigation

strava_local_heatmap_browser.py

Python script to reproduce the Strava Global Heatmap (www.strava.com/heatmap) with local GPX files

screenshot.png

Features

  • Minimal Python dependencies
  • Fast (3x faster than gpxpy.parse())

Usage

Command-line options

usage: strava_local_heatmap_browser.py [-h] [--gpx-dir DIR] [--gpx-filter FILTER] [--skip-ratio N] [--light-map]
                                       [--output FILE] [--radius RADIUS] [--blur BLUR] [--min-opacity OPACITY]
                                       [--max-val VAL] [--quiet]

optional arguments:
  -h, --help            show this help message and exit
  --gpx-dir DIR         directory containing the GPX files (default: gpx)
  --gpx-filters FILTERS glob filter(s) for the GPX files (default: *.gpx)
  --skip-ratio N        read every other N point of each GPX file (default: 1)
  --light-map           use light map background
  --output FILE         output html file (default: strava_local_heatmap.html)
  --radius RADIUS       radius of trackpoints in pixels (default: 2)
  --blur BLUR           amount of blur in pixels (default: 2)
  --min-opacity OPACITY
                        minimum opacity value (default: 0.3)
  --max-val VAL         maximum point intensity (default: 1.0)
  --quiet               quiet output

Python dependencies

See also

https://github.com/arichnad/heatmap-geojson to produce a heatmap in GeoJSON format from GPX files

About

Python script to reproduce the Strava Global Heatmap with local GPX data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages