Utility for setting Strava cookies in JOSM preferences. This allows to get a high resolution Strava Heatmap.
- python 2 is required. The pre-installed version that comes with macOS works properly.
- Currently, only macOS and the Safari browser are supported.
- Browse to the Strava Heatmap and setup a Strava account.
- Log in with your Strava credentials, flagging the remember me checkbox. Move the map and zoom in and out, in order to be sure to get the needed cookies.
- In JOSM preferences, activate the Strava imagery URLs that you need.
- Change each default imagery URL string from e.g.:
tms[3,11]:https://heatmap-external-{switch:a,b,c}.strava.com/tiles/run/bluered/{zoom}/{x}/{y}.png
to:
tms[3,15]:https://heatmap-external-{switch:a,b,c}.strava.com/tiles-auth/run/bluered/{zoom}/{x}/{y}.png
- Close JOSM.
- Grant Terminal with full disk access (macOS System Preferences > Security & Privacy > Privacy > Full Disk Access > Add the Terminal application).
- From the command line run
$ python upd_strava_prefs.py
- The imagery URL should be updated to:
tms[3,15]:https://heatmap-external-{switch:a,b,c}.strava.com/tiles-auth/run/bluered/{zoom}/{x}/{y}.png?Key-Pair-Id=<YOUR_KEY_PAIR_ID_COOKIE_VALUE>&Policy=<YOUR_POLICY_COOKIE_VALUE>&Signature=<YOUR_SIGNATURE_COOKIE_VALUE>
josm_strava_cookies
is distributed under the GPL v3.0.BinaryCookieReader.py
is distributed under the ... http://www.securitylearn.net/2012/10/27/cookies-binarycookies-reader/