zekefarwell / josm-strava-heatmap

A browser extension that simplifies getting the TMS imagery url for using the Strava Heatmap in JOSM
MIT License
62 stars 3 forks source link

Add Support for OsmAnd #7

Open Dollarius opened 2 years ago

Dollarius commented 2 years ago

Let me start by thanking you for creating this very useful addon! I use it extensively for mapping hiking trails in iD based on Strava's heatmap.

Would it be possible to add another option for OsmAnd? I use this Android/iPhone app for displaying heatmaps on my phone (also offline, after caching). The no-tms URL needs the following replacements: external-{switch:a,b,c}.strava -> external-a.strava {zoom} -> {0} {x} -> {1} {y} -> {2}

An example URL follows: https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{0}/{1}/{2}.png?Key-Pair-Id=***&Policy=***&Signature=***

Thank you very much for your consideration.

zekefarwell commented 2 years ago

Hi, Dollarius, glad you find the addon useful!
It certainly would be possible to add more variants of the url for compatibility with other apps. Adding support for other OSM editors beyond JOSM and iD might make sense. OsmAnd isn't really an OSM editor though so I'm not sure it fits with the goal of this addon: to streamline the use of the Strava heatmap for tracing in OSM editors. Or maybe I'm just not aware of OsmAnd's editing capability? I use the app a little bit, but not extensively. There are tons of map applications out there that someone might potentially want to view the strava heatmap in, but I'd prefer to keep this extension fairly simple and focused on OSM editing rather than supporting many different use cases.

Dollarius commented 2 years ago

Hi zekefarwell, thank you for your comment. OsmAnd can be used to edit OSM, and I find it pretty useful to be able to edit OSM while on the trails, based on real-world features and the heatmap. However, I am possibly a minor user of this feature, and I perfectly understand your decision to keep the script as simple as possible.

For added versatility of your extension, I could propose an "advanced custom formatting tab", where one can enter an example URL with wildcards to be formatted by your extension, like: http://mywebsite.com/mytags/myformat/?Key-Pair-Id=%ADD_ID&Policy=%ADD_POLICY&Signature=%ADD_SIGNATURE Saving this "advanced custom" URL format in the extension settings would enable its repeated use for different (uncommon) purposes.

Just a proposal: I would appreciate if you could consider it, but I will continue loving your script even if you do not. Thanks for your work!