remisalmon / Strava-local-heatmap-browser

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

Home Page:https://git.io/fjXTt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://git.io/fjXTt

License:MIT License


Languages

Language:Python 100.0%