Strava heatmap

Started by rvb, November 21, 2017, 10:37:15 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

rvb

https://labs.strava.com/heatmap/#4.64/8.08470/50.29339/hot/ride">//https://labs.strava.com/heatmap/#4.64/8.08470/50.29339/hot/ride



<url>https://heatmap-external-b.strava.com/tiles/ride/bluered/%7B$z%7D/%7B$x%7D/%7B$y%7D.png?px=256%3C/url">https://heatmap-external-b.strava.com/t ... x=256</url">https://heatmap-external-b.strava.com/tiles/ride/bluered/{$z}/{$x}/{$y}.png?px=256</url>

ebertocchi

#1
Hello everybody,



below the script copy in the file onlinemapsources.xml in order to add the heatmap from strava on the list of map.

After, you can make a composite map to have the heatmap upper an another map. Very useful to find the best road or path.

I hope that it will help you.

Regards



<onlinemapsource uid="66">

<name>Strava cycling heatmap (LAYER)</name>

           <url><![CDATA[https://heatmap-external-b.strava.com/tiles/ride/hot/%7B$z%7D/%7B$x%7D/%7B$y%7D.png?px=256">https://heatmap-external-b.strava.com/t ... png?px=256">https://heatmap-external-b.strava.com/tiles/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>

      <minzoom>6</minzoom>

             <maxzoom>23</maxzoom>



           <projection>MERCATORESFERICA</projection>

      <servers></servers>

      <cacheable>0</cacheable>

      <downloadable>1</downloadable>

      <maxtilesday>0</maxtilesday>

      <maxthreads>0</maxthreads>

      <xop></xop>

      <yop></yop>

      <zop></zop>

      <qop></qop>

      <sop></sop>

</onlinemapsource>



<onlinemapsource uid="67">

<name>Strava running heatmap (LAYER)</name>

           <url><![CDATA[https://heatmap-external-b.strava.com/tiles/run/hot/%7B$z%7D/%7B$x%7D/%7B$y%7D.png?px=256">https://heatmap-external-b.strava.com/t ... png?px=256">https://heatmap-external-b.strava.com/tiles/run/hot/{$z}/{$x}/{$y}.png?px=256]]></url>

      <minzoom>6</minzoom>

             <maxzoom>23</maxzoom>

           <projection>MERCATORESFERICA</projection>

      <servers></servers>

      <cacheable>0</cacheable>

      <downloadable>1</downloadable>

      <maxtilesday>0</maxtilesday>

      <maxthreads>0</maxthreads>

      <xop></xop>

      <yop></yop>

      <zop></zop>

      <qop></qop>

      <sop></sop>

</onlinemapsource>

ebertocchi

#2
The data in the onlinemapsources.xml was the following.

The current problem is since February 2018, we have a new limitation on the Heatmap.

Without connection ID+Password, we can't make a zoom deeper than 10. Not enought to be usable for running or montain bike.

Is there any people here who have an idea to modify the script to be usable until a zoom 15.

Normally when I look the script of the website heatmap strava, I understant that tiles should be replaced by tiles-auth but it is not enought.



<onlinemapsource uid="66">
<name>Strava cycling heatmap (LAYER)</name>
        <url><![CDATA[https://heatmap-external-b.strava.com/tiles/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
        <maxzoom>23</maxzoom>
        <projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>0</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>
 
<onlinemapsource uid="67">
<name>Strava running heatmap (LAYER)</name>
        <url><![CDATA[https://heatmap-external-b.strava.com/tiles/run/hot/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
        <maxzoom>23</maxzoom>
        <projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>0</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>



To be logged I imagine that I need to use some "httpparam" like below but nothing was working.

<httpparam name="provider id">10900</httpparam>
<httpparam name="id">8013503</httpparam>
<httpparam name="logged_in">true</httpparam>
<httpparam name="type">0</httpparam>
<httpparam name="identity_id">506121012836992691</httpparam>
<httpparam name="mapboxgl.accessToken">pk.eyJ1Ijoic3RyYXZhIiwiYSI6IlpoeXU2U0UifQ.c7yhlZevNRFCqHYm6G6Cyg</httpparam>
<httpparam name="visible">true</httpparam>
<httpparam name="background">-1</httpparam>
<httpparam name="name">Strava</httpparam>

ebertocchi

#3
Just for you to have an idea of what could be able to do with a zoom 15 with composite map using an IGN map + Strava heatmap running + strava heatmap cycle.



https://i.goopics.net/9p8Ng.png">

matt

#4
Hi,

at my end this works within my mapfiles/customonlinemaps/onlinemapsources.xml



<onlinemapsource uid="61">
<name>Strava heatmap [both] (OVERLAY)</name>
<url><![CDATA[http://globalheat.strava.com/tiles/both/color3/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>

<onlinemapsource uid="611">
<name>Strava heatmap [cycling] (OVERLAY)</name>
<url><![CDATA[http://globalheat.strava.com/tiles/cycling/color1/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>

<onlinemapsource uid="612">
<name>Strava heatmap [running] (OVERLAY)</name>
<url><![CDATA[http://globalheat.strava.com/tiles/running/color2/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>


I just did that 2 days ago, and i can zoom to ZL17.



A side note not related: i edited the xml at my PC. Unfortunatley i used Wordpad, that introduced a differend kind of double quotes, around the numbers of the onlinemapsources uid. That made the syntax incorrect, and my entire  customonlinemaps/onlinemapsources.xml was not seen/used by oruxmaps.

After i used "Notepad++", and saw the "strange" doublequotes, which i corrected, all was OK.

Matt

ebertocchi

#5
Hello Matt,



Thanks.

I already use the "globalheat" previously but it is the old revision of the heatmap.

Should be the heatmap until 2016 or something like that.

The heatmap-external is the new revision with really much more path/track and more visible tracks.



On area with few Strava player, I have really less information with the "globalheat" versus the "heatmap-external"

I will make a screen copy soon of the both to see the difference.

ebertocchi

#6
As promise, the first one is a screencopy with the old heatmap (globalheatmap)



https://i.goopics.net/j1mAN.png">



The following is the new one with heatmap-external before the zoom limitation done by strava last month.

https://i.goopics.net/71mOa.png">



As you can see except the colors, clearly the new heatmap-external has much more detailled informations vs the globalheatmap

smartl

#7
Orux is a wonderful app and I use it a lot, especially with strava heatmap on top of a base map. Since strava introduced zooming-limitations I have searched for a solution. The same issue was discussed in the locus-forum and it seems that someone has found a solution there:

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



I tried to do the same in orux but didn't succeed. Is there anyone who has more technical skills, can try this in Orux and post a description/onlinemapsources.xml? I would really appreciate it.

orux

#8
Quote from: smartl post_id=13245 time=1523623897 user_id=7472
Orux is a wonderful app and I use it a lot, especially with strava heatmap on top of a base map. Since strava introduced zooming-limitations I have searched for a solution. The same issue was discussed in the locus-forum and it seems that someone has found a solution there:

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



I tried to do the same in orux but didn't succeed. Is there anyone who has more technical skills, can try this in Orux and post a description/onlinemapsources.xml? I would really appreciate it.


Hello;



You can add additional headers to the request using <httpparam name=""></httpparam>



for example, if you need to add a cookie you need:

<httpparam name="Cookie"><![CDATA[your cookie data here]]></httpparam>





orux

smartl

#9
Works perfectly! Thank you.

manutena

#10
Hi, i would like to add Strava Heat map into my Orux app.

I read the discussions but is not clear to me what should I write, and where should i store that file. Can anyone help me?.

Oruxmaps the best app ever for MTBiking

ebertocchi

#11
Thanks Orux and smartl.

It works now fine with cookie adding.

Maybe I will made some copy screen to explain the how to do in the future.

rvb

#12
Was interesting map, do not know if I will get it back again, looks too difficult for me :(

smartl

#13
ebertocchi, is it still working for you? No heatmap appears anymore, not the old ones either.

ebertocchi

#14
Hello Smartl,



I try to use it this morning and it worked no more (and it seems that the old version (globalheatmap) too like you).

So I thought that it was strange and I decided to come back to the forum in order to check if there is anything new and I saw your post.

It is a pity...

I will try with an another Cookie. Maybe the cookie is working only few days? but I am affraid that the problem is maybe more complex and they added a new security.



We keep us together in touch if new infos.



Regards