Simple website written written in TypeScript/ejs and bundled using webpack.
- Deployed/hosted using Github pages
- Originally written in Angular but given the simplicity of the site it ended up without a framework.
- Download all data from strava
- Use gpsbabel to convert all tracks to geojson
- Load all into memory
- hex/rectangle bin it (30 m^2)
- Generate table with column <bin/lat/lon, used>
- Generate routes based on the following algorithm: Find unused bin
- Find adjacent hex bin, push onto route, mark both used
- Continue, finding unused
- If no more unused, look for adjacent used, add to route
- Jump back to start, look for adjacent, push front, mark both used Continue until no more unused bins
- Export routes in one geojson file
- Download data dump from Strava
- Unzip all activities with
gunzip *
- Run
sed -r -i 's/^\s+//g' *.tcx
to remove incorrect spacing - Run
npm run convert-input
(must be using gpsbabel 1.6) - Run
npm run combine-routes