Export runs from Strava into GeoJSON.
The easiest way to get a token is to use Strava API Playground.
- go to Strava API Playground
- click 'Authorize'
- paste you app info, available in your Strava settings
- select one of 'activity:read' or 'activity:read_all' for the 'scope'
- click 'Authorize'
- execute a request from the playground and copy the 'access_token'
With node,
npm i -g strava-geojson
$ strava-geojson YOUR_ACCESS_TOKEN_HERE > my_runs.geojson
var stravaExport = require('strava-geojson');
stravaExport(STRAVA_TOKEN).pipe(process.stdout);