A command line tool that animates your exercise maps, inspired by an article by Andriy Yaremenko.
> rainbow-roads \
--sport running \
--after 2020-08-01 \
--min_duration 15m \
--min_distance 3km \
--max_pace 10m/km \
--bounded_by -37.8,144.9,5km \
--output lockdown_worms \
path/to/my/activity/data
Some basic statistics are output to help validate the activities that were included and to aid in further refining filters.
files: 55,536
activities: 272
records: 196,092
sports: running (272)
period: 6.7 years (2017-04-08 to 2023-12-21)
duration: 26m23s to 1h49m52s, average 1h0m6s, total 272h27m32s
distance: 6.0km to 18.0km, average 10.6km, total 2,876.5km
pace: 4m13s/km to 7m54s/km, average 5m40s/km
bounds: -37.8,144.9,4041.90923
starts within: -37.8,144.9,585.60073
ends within: -37.8,144.9,3934.96018
The easiest way to find the coordinates of a known location is to right-click on it in Google Maps and select the first menu item.
Usage:
rainbow-roads [flags] [input]
General flags:
-o, --output string optional path of the generated file (default "out")
-f, --format string output file format string, supports gif, png, zip (default "gif")
Filtering flags:
--sport sports sports to include, can be specified multiple times, eg running, cycling
--after date date from which activities should be included
--before date date prior to which activities should be included
--min_duration duration shortest duration of included activities, eg 15m
--max_duration duration longest duration of included activities, eg 1h
--min_distance distance shortest distance of included activities, eg 2km
--max_distance distance greatest distance of included activities, eg 10mi
--min_pace pace slowest pace of included activities, eg 8km/h
--max_pace pace fastest pace of included activities, eg 10min/mi
--bounded_by circle region that activities must be fully contained within, eg -37.8,144.9,10km
--starts_near circle region that activities must start from, eg 51.53,-0.21,1km
--ends_near circle region that activities must end in, eg 30.06,31.22,1km
--passes_through circle region that activities must pass through, eg 40.69,-74.12,10mi
Rendering flags:
--frames uint number of animation frames (default 200)
--fps uint animation frame rate (default 20)
-w, --width uint width of the generated image in pixels (default 500)
--colors colors CSS linear-colors inspired color scheme string, eg red,yellow,green,blue,black (default #fff,#ff8@0.125,#911@0.25,#414@0.375,#007@0.5,#003)
--color_depth uint number of bits per color in the image palette (default 5)
--speed float how quickly activities should progress (default 1.25)
--loop start each activity sequentially and animate continuously
--no_watermark suppress the embedded project name and version string
cd %HOMEPATH%\Downloads
to change into the downloads directory.rainbow-roads export.zip
where export.zip is the name of the activity ZIP file you were emailed.
Simply install Go and run:
go install github.com/NathanBaulch/rainbow-roads@latest
A sub-command used to track street coverage, useful for #everystreet style challenges and to make animations more spectacular.