This project was part of RemoteHack #4, and was created by @nimphal and @spikeheap.
The premise of this hack was to take your Strava activities, and generate something like the heatmap (e.g. https://www.strava.com/athletes/39726/heatmaps/285a7b19#7/51.13111/-1.13159), showing changes over time.
You can generate your Strava Heatmap at: https://www.strava.com/athlete/heatmaps
- This is NOT PRODUCTION WORTHY.
- You'll need to pull the activities from Strava manually. For the purposes of the hack day, we used our Strava API keys and Postman to extract our activities into a single JSON file. This repository does not contain code to update/pull activities from Strava (yet).
-
Leaflet path options: https://leafletjs.com/reference-1.6.0.html#path
-
JQ join arrays in separate files:
jq -s add file1 file2
API Docs
-
Get my activities (summary): https://developers.strava.com/docs/reference/#api-Activities-getLoggedInAthleteActivities
- returns Summary object (without route)
-
https://developers.strava.com/docs/reference/#api-Activities-getActivityById
- returns DetailedActivity, which contains the activity polyline: https://developers.strava.com/docs/reference/#api-Activities-getActivityById
Strava uses the Google Encoded Polyline Algorithm Format.
This project is released under the MIT license.