sembruk / josm_strava_cookies

Utility for setting Strava cookies in JOSM preferences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

josm_strava_cookies

Utility for setting Strava cookies in JOSM preferences. This allows to get a high resolution Strava Heatmap.

Requirements

  • python 2 is required. The pre-installed version that comes with macOS works properly.
  • Currently, only macOS and the Safari browser are supported.

Usage

  1. Browse to the Strava Heatmap and setup a Strava account.
  2. 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.
  3. In JOSM preferences, activate the Strava imagery URLs that you need.
  4. 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
  1. Close JOSM.
  2. Grant Terminal with full disk access (macOS System Preferences > Security & Privacy > Privacy > Full Disk Access > Add the Terminal application).
  3. From the command line run $ python upd_strava_prefs.py
  4. 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>

Licence

About

Utility for setting Strava cookies in JOSM preferences

License:GNU General Public License v3.0


Languages

Language:Python 79.4%Language:Shell 20.6%