All Projects → remisalmon → Strava-local-heatmap

remisalmon / Strava-local-heatmap

Licence: MIT license
Python script to generate a high resolution heatmap from Strava GPX files

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Strava-local-heatmap

Strava-Analysis-Tool
A Python tool to analyze and display Strava activity data.
Stars: ✭ 32 (-68.63%)
Mutual labels:  strava, heatmap, cycling
StravaHeatmap
Make a simple heatmap from your strava data
Stars: ✭ 23 (-77.45%)
Mutual labels:  strava, heatmap
gpx-builder
Builder of GPX files
Stars: ✭ 25 (-75.49%)
Mutual labels:  gpx, gps
strava-uploader
utility to migrate Runkeeper data (GPX and CSV) to Strava
Stars: ✭ 72 (-29.41%)
Mutual labels:  gpx, strava
GPXtoHeatmap
Allows users to convert a collection of GPX files into a heatmap
Stars: ✭ 18 (-82.35%)
Mutual labels:  gpx, heatmap
strava
PHP Class for the Strava API (v3)
Stars: ✭ 117 (+14.71%)
Mutual labels:  strava, cycling
X-TRACK
A GPS bicycle speedometer that supports offline maps and track recording
Stars: ✭ 3,736 (+3562.75%)
Mutual labels:  gpx, gps
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (-27.45%)
Mutual labels:  gpx, gps
xavc rtmd2srt
Extract real time meta-data and GPS tracks from Sony XAVC video
Stars: ✭ 29 (-71.57%)
Mutual labels:  gpx, gps
cycling
🚴 My cycling trip from ShangHai to Wuhan in China.
Stars: ✭ 34 (-66.67%)
Mutual labels:  strava, cycling
gpx-interpolate
Python function to interpolate GPX data using piecewise cubic Hermite splines
Stars: ✭ 35 (-65.69%)
Mutual labels:  gpx, gps
GPXParser.js
GPX file parser javascript library
Stars: ✭ 58 (-43.14%)
Mutual labels:  gpx, gps
GeoConvert
Converting between Geojson and GIS file formats
Stars: ✭ 32 (-68.63%)
Mutual labels:  gpx
GpsPrune
GpsPrune is a map-based application for viewing, editing and converting coordinate data from GPS systems.
Stars: ✭ 46 (-54.9%)
Mutual labels:  gpx
FusedBulb
Location fetch library.
Stars: ✭ 22 (-78.43%)
Mutual labels:  gps
garmin-connect-export
Downloads gpx, tcx or original fit files from your Garmin Connect Account.
Stars: ✭ 42 (-58.82%)
Mutual labels:  gpx
gpxstudio.github.io
The online GPX file editor
Stars: ✭ 233 (+128.43%)
Mutual labels:  gpx
wp-plugin-trackserver
A WordPress plugin for GPS tracking and publishing
Stars: ✭ 34 (-66.67%)
Mutual labels:  gpx
TET
TET- Trans Euro Trail - Public Files
Stars: ✭ 27 (-73.53%)
Mutual labels:  gpx
GPS-Video-Logger
Android App to record video and track GPS data simultaneously. GPS Logger with Video. GPS and video recording.
Stars: ✭ 17 (-83.33%)
Mutual labels:  gpx

strava_local_heatmap.py

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

Optimized for cycling activities 🚴

Features

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

Usage

Command-line options

usage: strava_local_heatmap.py [-h] [--dir DIR] [--filter FILTER] [--year YEAR [YEAR ...]]
                               [--bounds BOUND BOUND BOUND BOUND] [--output OUTPUT] [--zoom ZOOM] [--sigma SIGMA]
                               [--orange] [--csv]

optional arguments:
  -h, --help            show this help message and exit
  --dir DIR             GPX files directory (default: gpx)
  --filter FILTER       GPX files glob filter (default: *.gpx)
  --year YEAR [YEAR ...]
                        GPX files year(s) filter (default: all)
  --bounds BOUND BOUND BOUND BOUND
                        heatmap bounding box as lat_min, lat_max, lon_min, lon_max (default: -90 +90 -180 +180)
  --output OUTPUT       heatmap name (default: heatmap.png)
  --zoom ZOOM           heatmap zoom level 0-19 or -1 for auto (default: -1)
  --sigma SIGMA         heatmap Gaussian kernel sigma in pixel (default: 1)
  --orange              not a heatmap...
  --csv                 also save the heatmap data to a CSV file

Note: ZOOM is OpenStreetMap zoom level (the number following map= in www.openstreetmap.org/#map=)

On the use of histogram equalization: https://medium.com/strava-engineering/the-global-heatmap-now-6x-hotter

Examples

command output
strava_local_heatmap.py heatmap.png
strava_local_heatmap.py --orange orange.png
strava_local_heatmap.py --csv See https://umap.openstreetmap.fr/en/map/demo-heatmap_261644 (by @badele)

Requirements

python>=3.9
numpy>=1.20
matplotlib>=3.4

Other requirements

Arch Linux: sudo pacman -S tk (see here)

Projects using strava_local_heatmap.py

JeSuisUnDesDeux

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].