Support for Strava Global Heatmap and/or Personal Heatmap

Michaël MEMETEAU shared this idea 4 years ago
Declined

Having the possibility to check on the field whether a particular track deserve further exploration would be great.

I was able to manage it from my desktop computer with JOSM as seen below:


0AnFvSKmpgkiRGhMoYZH


By adding the following custom TMS server (didn't check ToU however...):


Global Heatmap:

* tms:http://gometry.strava.com/tiles/cycling/color3/{zoom}/{x}/{y}.png


Personal Heatmap (requires Premium account from Strava):

* tms:http://d22umfi1yqsdc.cloudfront.net/tiles/01000000001B10EE0D8923B4-0E419EFF/{zoom}-{x}-{y}.png?1404065331


Now the next step would be to have a similar feature on-board (Android in this case)...

Supporting TMS should be enough, but I wasn't able to spot support for TMS format. Am I looking in wrong places?


Thanks in advance and keep up the excellent work...


Cheers,


Michaël.

Comments (37)

photo
2

Hello Michaël,


I'm not 100% sure, but already existing method for adding custom online maps, should work also on these TMS servers.


If you are little bit skilled (seems so), may you please try this method http://docs.locusmap.eu/doku.php?id=manual:custom_online_maps ?


If there will be any problem, feel free to write me.

photo
1

Menion wrote:

Hello Michaël,


I'm not 100% sure, but already existing method for adding custom online maps, should work also on these TMS servers.


If you are little bit skilled (seems so), may you please try this method http://docs.locusmap.eu/doku.php?id=manual:custom_online_maps ?


If there will be any problem, feel free to write me.

Got it!


RCo3uB2AlUZMlPgtB1TP


The corresponding <provider.xml> file:

  1. <!-- Strava Global Heatmap Biking -->

    <provider id="109000" type="0" visible="true" background="-1">

    <name>Strava</name>

    <mode>Global Heatmap Biking</mode>

    <countries>World</countries>

    <url><![CDATA[http://gometry.strava.com/tiles/cycling/color3/{z}/{x}/{y}.png]]></url>;

    <zoomPart>{z}-8</zoomPart>

    <zoomMin>8</zoomMin>

    <zoomMax>24</zoomMax>

    <tileSize>256</tileSize>

    <attribution><![CDATA[Strava]]></attribution>

    <extraHeader><![CDATA[Referer#http://www.strava.com/]]></extraHeader>;

    <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0]]></extraHeader>

    </provider>

I've attached the corresponding Strava icon as a token of my gratitude...


Many thanks!

photo
2

... Great and workable result with Mapbox Satellite and Strava Overlay!


zP8KLS1zIYF5vxoEjbnZ

photo
2

Perfect, glad to hear you were success!

photo
2

Could you please upload the part of your provider.xml?


The code snippet you posted got truncated

photo
1

Sure! Here you go...

Best results (for me), is working with MapBox Satellite as a base map and Global Heatmap as an overlay (80%) and Blend mode in "ADD".

The interesting part are the last two blocks (Global and Personal Heatmap).

You'll have to figure out the right address (and have a premium Strava account for the last one) in:


* http://xxxxxxxxxxx.cloudfront.net/tiles/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/{z}-{x}-{y}.png?xxxxxxxxx


It's specific for each account...

Enjoy...


Michaël.

photo
2

thx!

The file has more than the heatmap entries - and your api-key for your bikemap...

i would suggest uploading a new version without your key and the other maps and name it strava.providers.xml...

photo
1

You're right. Done!

photo
2

no attachment left ;)

But works for me!


btw: you can have more than one provider.xml

See the note on http://docs.locusmap.eu/doku.php?id=manual:custom_online_maps in the first section

photo
2

Probably my mistake! Corrected... Sorry.

The next step would probably consists of trying to have the several layers (global heatmap / personal heatmap with a different color and mapbox satellite all in the same file definition).

photo
2

updated global heatmap

photo
2

Hm I used that but can not see the terraim/satellite map, only the lines from strava.

photo
2

You need to use this as an overlay on top of any other map... ;-)

photo
2

Duh :), thx.


There is related documentation for who don't know: http://docs.locusmap.eu/doku.php?id=manual:user_guide:maps_tools:overlays

photo
photo
2

cause it's the overlay for any map you wish

photo
1

running heatmap added...

photo
2

Not sure the attached file was compressed correctly. When trying to uncompress, I get a .cpgz extension. Is it just me or someone else have also the problem?

photo
1

try this...

photo
2

Now we're talking :)

Thanks!

photo
2

This looks great, but how to use it? Place this .xml somewhere in Locus directory or paste it into some other?

Thanks for advice!

photo
3

You should put this file in /Locus/mapsOnline/custom

That could be either internal or external (SD Card) memory according to your configuration.


Enjoy!

photo
2

Thanks! It works. Looks cool :-)

photo
photo
1

I found this feature here:

http://www.locusmap.eu/de/strava-heatmap-in-locus-why-not/


But it seems to be down - the file gives me a "server error".


(I wrote a comment at the blog post, but it count be uploaded - is there a bug at the comment area?)

photo
1

Maybe you should check the source files directly from the Strava site, They could have changed the syntax meanwhile...

photo
1

the syntax has changed so we had to change the script as well. Try it again, it should work now

photo
1

@Michael Stupka

It is not working anymore. Any changes needed?

Edit: Sorry, it is still working. Thanks!

photo
1

edit, see comment below

photo
photo
1

The Heatmap was just updated today. Are there any instructions on how to download the updated files?

photo
2

@andrew - does it mean the heatmap doesn't work for you? It works for me...

EDIT: I checked the Strava heatmap website and you're right - the data are renewed - the heatmap overlay in Locus that use data from Strava tile server, however, use older data. For the time being we don't know URL of the tileserver with new data. Or maybe Strava will stream the new data via the old tileserver, we'll wait.

photo
4

I've updated the XML file.

photo
1

This is great, thank you!

photo
1

Thanks Mats! Good job!

photo
2

I changed colour hot to blue for personal ref..

Old eyes need contrast..

photo
photo
1

Hi,

it is working?

Because for me not. I know that few weeks ago was changing strava how to use heatmap.

photo
1

Hi,

you're right - Strava changed their terms of use of the global heatmap and this workaround doesn't work any longer. According to Strava support, for the time being, there is no option how to make this functionality officially available in third party apps. There is a way, however, unofficial - see http://help.locusmap.eu/topic/strava-heatmap-requires-now-authentification-at-higher-zoom.

photo
1

Thanks Michal. I'll try it :)

photo
2

Strava changed their policy and you now need to include a cookie info to get access to lower zoom detailed maps. The following thread is explaining how to do it:

http://help.locusmap.eu/topic/strava-heatmap-requires-now-authentification-at-higher-zoom