OruxMaps

Uncategorized Boards => MAPAS/MAPS => Topic started by: rvb on November 21, 2017, 10:37:15 AM

Title: Strava heatmap
Post by: rvb on November 21, 2017, 10:37:15 AM
//https://labs.strava.com/heatmap/#4.64/8.08470/50.29339/hot/ride



<url>https://heatmap-external-b.strava.com/tiles/ride/bluered/{$z}/{$x}/{$y}.png?px=256</url>
Title: Re: Strava heatmap
Post by: ebertocchi on January 31, 2018, 10:59:32 PM
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/{$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>
Title: Re: Strava heatmap
Post by: ebertocchi on March 25, 2018, 06:43:48 PM
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>
Title: Re: Strava heatmap
Post by: ebertocchi on March 25, 2018, 06:50:44 PM
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.



(//%3C/s%3E%3CURL%20url=%22https://i.goopics.net/9p8Ng.png%22%3Ehttps://i.goopics.net/9p8Ng.png%3C/URL%3E%3Ce%3E)
Title: Re: Strava heatmap
Post by: matt on March 26, 2018, 12:32:14 PM
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
Title: Re: Strava heatmap
Post by: ebertocchi on March 26, 2018, 04:32:52 PM
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.
Title: Re: Strava heatmap
Post by: ebertocchi on March 26, 2018, 10:28:55 PM
As promise, the first one is a screencopy with the old heatmap (globalheatmap)



(//%3C/s%3E%3CURL%20url=%22https://i.goopics.net/j1mAN.png%22%3Ehttps://i.goopics.net/j1mAN.png%3C/URL%3E%3Ce%3E)



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

(//%3C/s%3E%3CURL%20url=%22https://i.goopics.net/71mOa.png%22%3Ehttps://i.goopics.net/71mOa.png%3C/URL%3E%3Ce%3E)



As you can see except the colors, clearly the new heatmap-external has much more detailled informations vs the globalheatmap
Title: Re: Strava heatmap
Post by: smartl on April 13, 2018, 02:51:37 PM
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



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.
Title: Re: Strava heatmap
Post by: orux on April 14, 2018, 09:04:23 PM
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



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
Title: Re: Strava heatmap
Post by: smartl on April 14, 2018, 10:39:53 PM
Works perfectly! Thank you.
Title: Re: Strava heatmap
Post by: manutena on April 20, 2018, 01:20:46 AM
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
Title: Re: Strava heatmap
Post by: ebertocchi on April 20, 2018, 09:00:12 AM
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.
Title: Re: Strava heatmap
Post by: rvb on April 25, 2018, 11:59:46 AM
Was interesting map, do not know if I will get it back again, looks too difficult for me :(
Title: Re: Strava heatmap
Post by: smartl on April 30, 2018, 12:56:38 PM
ebertocchi, is it still working for you? No heatmap appears anymore, not the old ones either.
Title: Re: Strava heatmap
Post by: ebertocchi on May 02, 2018, 10:20:14 AM
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
Title: Re: Strava heatmap
Post by: rvb on May 03, 2018, 09:17:11 AM
With the cookie it should work, but it doesn't at my device.



Create a Strava account (it's free)

Use Chrome to browse to the Strava Heatmap site (i.e. https://www.strava.com/heatmap#12.56/8.53666/47.37749/hot/ride)

Login in Strava to be able to zoom on street level

Open open chrome developer tools -> network, filter for .png

Right click an entry in the column Name and do a "copy as cURL"

Paste that in an editor and copy the Cookie Part, everything after "Cookie:" up unto '
Title: Re: Strava heatmap
Post by: Yamayo on May 20, 2018, 05:50:47 PM
Hello all, I'm a happy user of oruxmaps and I'd could use your help, if any of you can.

I'm trying to add the cookie to the code but I'm not getting anything out of it, I think I've used the "httpparam" as explained by orux and I've put the cookie as explained in the locus forums, but it doesn't work.



Here is the code as I have it in onlinemapsources (cookie edited).

Any ideas? Thank you.


<onlinemapsource uid="614">
<name>Strava heatmap [cycling] (OVERLAY) 7 cookie</name>
<httpparam name="Cookie"><![CDATA[ajs_group_id=null; ajs_anonymous_id=^%^229f7da3d2-2b7e-46d5-9098-57fc2f10d7ee^%^22; _strava4_session=sigi0oa0pmvh04s1jm7e3ti3l34ae0q7; ajs_user_id=24369543; CloudFront-Policy=eyJTdGF0ZcoooooooooooooooooookieblablablaUQPSA; CloudFront-Signature=MSKndOTqVPTPGblablablabPdy9mW9~p6ulYQCyAsUGAH0-MBUvRnjBniEKMhR8ChmY7f4PZm26WuEpjcVagFMcq~liL5lFgQmZ4riWhg7sVMmcvYS~ldi1t-hTi7jrnhUSVl7hwIuanyHzA~WnKkfhSMLMg20NC~bphaLxpBHFt2P5wMSzC3ZEKIlJZgUdtsb0HxSXftdQPZfjiXORNaSbpFUwLyba3KkTiIHZKLCSj1bmqQ7Dw7vcr3X7RL2SCU9vQZaR6dtpn6D9Nl55QE62xgIPmDGyiow__]]></httpparam>
<url><![CDATA[https://heatmap-external-c.strava.com/tiles-auth/ride/bluered/{z}/{x}/{y}.png?v=19]]></url>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
Title: Re: Strava heatmap
Post by: quics on May 21, 2018, 11:26:01 PM
Hi Yamayo!

I tried it with the following code:
<onlinemapsource uid="51">
<name>Strava new 54 zyx heatmap [ride] (OVERLAY)</name>
<!-- <url><![CDATA[http://globalheat.strava.com/tiles/both/color3/{$z}/{$x}/{$y}.png]]></url> -->
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?v=17]]></url>
<minzoom>0</minzoom>
<maxzoom>15</maxzoom>
<httpparam name="Cookie"><![CDATA[optimizelyEndUserId=oeu1466579122315673425r0.5835756707355442567052; optimizelySegments=^%^7B^%^22176579397559^%^22^%^3A^%^22false^%^22^%^2C^%^22179790633^%^22^%^3A^%^22direct^%^22^%^2C^%^22180070639^%^22^%^3A^%^22gc^%^22^%^7D; optimizelyBuckets=^%^7B^%^7D; _ga=GA1.2.2078697758.1469122114; ajs_group_id=null; ajs_anonymous_id=^%^223633b9fc-fdb9-408e-b304-ff56422cec43^%^22; _gid=GA1.2.771601027.1526202524; _strava4_session=pulkmr4jccit1eqnqdk5qpan2isancmo; ajs_user_id=15369477842; CloudFront-Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHBzOi8vaGVhdG1hcC1leHRlcm5hbC0qLnN0cmF2YS5jb20vKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTUyNzA2NjU0N30sIkRhdGVHcmVhdGVyVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNTI1ODQyNTQ3fX19XX0_; CloudFront-Key-Pair-Id=APKAIDPUN4QMG7VUQPSA; CloudFront-Signature=NdQ9gzQuIy46QRl3c9GivDqHUyUoYY9zVHX2PC2-cq-Fsw1A047o3L04bbZtyACyG9hEwR6QBA7SQMHUMTtZVEOZKRoO9ffruBbGLkjdqGkrzyFOR6J5O7Y3FKxRsDLJy-yiHTOgB8M3~CkPJkbp7EvSUZ67KL6BdWkX7qxXo8IHyyKCfoqkaUzdR6K-3HEZzFrdIN7uRLfgCvuF-Yw2sP2RT2s1wMPXmJyYBraKfYF6NJx7S5yMYsIkzOtbh3XfDATFoHdWOIVwD7XlT5LCTm~AQXceiTHaKasneFbxz8KY8xGsrNdc5CjnObQYxr37HGRJa-zm6gyBQK~jTqxflA__; _dc_gtm_UA-6304847-24=1]]></httpparam>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
</onlinemapsource>


I could load heatmap tiles but they seemed to be out of the regular order and were unuseable as they were not placed at the right position on the map.



Comparing the two mapsources I noticed you are missing the $ signs in the coordinates.



Does anyone else find an error in our codes?
Title: Re: Strava heatmap
Post by: Yamayo on May 23, 2018, 12:39:10 AM
You where right quics (thanks!), I needed the $. But now we have the same problem, it's like a scrambled puzzle, but there is not much else to do I think.



//http://oi68.tinypic.com/2hdtj0m.jpg
Title: Re: Strava heatmap
Post by: smartl on May 23, 2018, 03:12:27 PM
Try this line:
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>

px=256 makes the trick.
Title: Re: Strava heatmap
Post by: quics on May 23, 2018, 06:53:26 PM
I tried px=256 but I still get maps like this:



(//%3C/s%3E%3CURL%20url=%22http://quics.bplaced.net/misc/Screenshot_20180523-184355.png%22%3E%3CLINK_TEXT%20text=%22http://quics.bplaced.net/misc/Screensho%20...%20184355.png%22%3Ehttp://quics.bplaced.net/misc/Screenshot_20180523-184355.png%3C/LINK_TEXT%3E%3C/URL%3E%3Ce%3E)



It seems that also the zoom levels of the track and the map don't match.

Any ideas?
Title: Re: Strava heatmap
Post by: smartl on May 23, 2018, 08:31:08 PM
Did you reload the onlinemapsources.xml?

Maybe you should remove the cache/memory or try another place?

This works for me:
<onlinemapsource uid="91">
<name>Strava heatmap cycle hot (STRAVA)</name>
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
<maxzoom>23</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="Cookie"><![CDATA[ajs_group_id=null; ajs_anonymous_id=.......]]></httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>
Title: Re: Strava heatmap
Post by: Yamayo on May 23, 2018, 10:43:19 PM
It's working!!!!!!!!!!!!!!!!!!!!!!!!!!!!  :lol:  :lol:  :lol:  :lol:



Thank you smartl!!
Title: Re: Strava heatmap
Post by: rvb on May 23, 2018, 10:52:51 PM
Okay, works, thank you.
Title: Re: Strava heatmap
Post by: phil-bzh on May 27, 2018, 04:28:01 PM
Hello



It doesn't work for me  :cry:



I got the cookie named "ajs_anonymous_id" from Chrome (through the parameters menu) : %221ead31b....3a0d67%22



and I tried that code :



<onlinemapsource uid="716">
<name>Strava heatmap cycle hot (STRAVA)</name>
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
<maxzoom>23</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="Cookie"><![CDATA[ajs_group_id=null; ajs_anonymous_id=%221ead31b....3a0d67%22]]></httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>


What did I miss ?



Thank you  :)
Title: Re: Strava heatmap
Post by: smartl on May 28, 2018, 07:54:00 AM
phil-bzh: Have you replaced the whole cookie-string (not just the ID)?
<httpparam name="Cookie"><![CDATA[Replace this text with your whole cookie. Probably it doesn't start with 'ajs_groupxxxxx']]></httpparam>
Title: Re: Strava heatmap
Post by: phil-bzh on July 03, 2018, 09:01:10 AM
Hello, thank you for your help. But when I paste the whole cookie, still doesn't work for higher zooms :(
Title: Re: Strava heatmap
Post by: CrAfTy on October 29, 2018, 10:14:27 AM
First of all, sorry for my english.



This code works for me:
Quote from: phil-bzh post_id=13619 time=1527431281 user_id=7312


<onlinemapsource uid="716">
<name>Strava heatmap cycle hot (STRAVA)</name>
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
<maxzoom>23</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="Cookie"><![CDATA[ajs_group_id=null; ajs_anonymous_id=%221ead31b....3a0d67%22]]></httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>



I got the cookie in chrome with these steps of locus-forum:


Create a Strava account (it's free)
Use Chrome to browse to the Strava Heatmap site (i.e. https://www.strava.com/heatmap#12.56/8. ... 9/hot/ride)
Login in Strava to be able to zoom on street level
Open open chrome developer tools -> network, filter for .png
Right click an entry in the column Name and do a "copy as cURL"
Paste that in an editor and copy the Cookie Part, everything after "Cookie:" up unto '


that paste to the httpparam value and the zoom works perfectly up to a scale of 400 m. ;)



The only mistake I had is that in the URL I was erroneously putting the address.

The correct ones would be:



https://heatmap-external-a.strava.com/tiles-auth/both/bluered/{$z}/{$x}/{$y}.png?px=256 for the "ALL" map.

https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256 for the "RIDE" map.

https://heatmap-external-a.strava.com/tiles-auth/run/blue/{$z}/{$x}/{$y}.png?px=256 for the "RUNNING" map.



And the colors that I put differentiating the maps are "bluered", "hot" and "blue" but I think it is also valid "gray" although this last one I have not tried because I do not like it.



I hope my message will help.

Thank you all for this..

It's great.



;)
Title: Re: Strava heatmap
Post by: topolsky_kirill on July 12, 2019, 05:14:41 PM
Hello.

Everything works at my smartphone with diagonal 5.5.

But when I try to use the same onlinemapsources.xml at Samsung Tab 10" then Strava heatmap not loading.

I tryed to use link without ?px=256 - no change.

I do not know how to cope with dat problem.


<onlinemapsource uid="716">
<name>Strava heatmap cycle hot (STRAVA)</name>
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/both/bluered/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
<maxzoom>23</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="Cookie"><![CDATA[ajs_user_id=22***]]></httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

(//%3C/s%3Ethumb.cloud.mail.ru/weblink/thumb/xw1/GDJ5/PqbNcLXbm%3Ce%3E)

(//%3C/s%3Ethumb.cloud.mail.ru/weblink/thumb/xw1/BngM/mrmiXbhYM%3Ce%3E)
Title: Re: Strava heatmap
Post by: Camino_ancho on August 01, 2019, 02:59:10 PM
Create a Strava account (it's free)
Use Chrome to browse to the Strava Heatmap site (i.e. https://www.strava.com/heatmap#12.56/8. ... 9/hot/ride)
Login in Strava to be able to zoom on street level
Open open chrome developer tools -> network, filter for .png
Right click an entry in the column Name and do a "copy as cURL"
Paste that in an editor and copy the Cookie Part, everything after "Cookie:" [color=#FF0000]up unto '[/color]


No consigo hacer que funcione. Cuando sigo estos pasos, no encuentro el símbolo '



Gracias
Title: Re: Strava heatmap
Post by: CrAfTy on December 11, 2019, 08:38:18 AM
Quote from: Camino_ancho on August 01, 2019, 02:59:10 PM
<r>No consigo hacer que funcione. Cuando sigo estos pasos, no encuentro el símbolo '

Gracias</r>

Se hacen los mismos pasos pero a la hora de copiar el cookie es diferente:


  • Create a Strava account (it's free)
  • Use Chrome to browse to the Strava Heatmap site (i.e. https://www.strava.com/heatmap#12.56/8. ... 9/hot/ride)
  • Login in Strava to be able to zoom on street level
  • Open open chrome developer tools -> network, filter for .png
  • Right click an entry in the column Name and do a "copy as cURL"
  • Paste that in an editor and copy the Cookie Part, everything after "Cookie:" up unto '<e>
  • Right click an entry in the column Name and select Save all as HAR with content
  • In file saved seach for cookie and paste the value in httpparam

En el fichero .har que has guardado se busca el value de la cookie (valor en rojo) y se pega en httpparam:


            },
            {
              "name": "accept-language",
              "value": "es-ES,es;q=0.9"
            },
            {
              "name": "cookie",
              "value": "_ga=GA1.2.130219886.1572709495; sp=1d23eec3-ce2e-4098-a8dc-1fc124d2950a; _strava4_session=79dituff63soed6KSSjFFCaYkciIRf7vzYRlcvWrxp1LsitYdZNk2NK0bl~T0FoJBRudFRodnysgnnF7vqgEN579P6OCGvE7iIdSrxXFBnFf9KtwvlKRb~M~kBpHvlmgrqz84BVelyt9zzk5zvZBirDDot3dCgACZ~qpeNRuteqVDCJ4lyu62cXDoyU497vxJQrkwj4Shr-QQwEiWg-CDI0L0tEU6teUcrkFr7dQrtjOt-9TQQR9FtMVBGNkzuwKTauuA__; _dc_gtm_UA-6309847-24=1"
            }
          ],






Title: Re: Strava heatmap
Post by: Pinod on April 22, 2021, 05:29:27 PM
I've tried everything, unfortunately nothing has worked for me.

I'm using the Strava Heatmap layer (with the cookies method) in JOSM, OSM iD and other programs, but until now, no luck with orux.

Is it still working for anybody?

Title: Re: Strava heatmap
Post by: afgb1977 on April 23, 2021, 01:36:05 AM
Use the original Strava links, there are at least 40.
AnyGIS links have server problems, the only advantage is that it has 1-2 zoom levels more than the original ones.
I am sending you a small file that I use as a repository for Strava layers. They all work.
They are divided into 2:
① Tiles 256
② Tiles 512
PD. I attach XML file with all the Strava links that I have configured.
To get the dark background, make a composite map with MapBox or some other dark base map, Strava's website uses MapBox, you can also use the new SwissTopo Dark with shading that have global coverage.
Open this answer so you can view and download the XML file.

PS2. If you refer to obtaining more zoom through Strava cookies, you must repeat the process and configure everything again approximately once a week, the cookies expire and you will no longer be able to see the layers.
Felipe

Title: Re: Strava heatmap
Post by: Pinod on April 23, 2021, 08:48:54 AM
Quote from: afgb1977 on April 23, 2021, 01:36:05 AM
Use the original Strava links, there are at least 40.
AnyGIS links have server problems, the only advantage is that it has 1-2 zoom levels more than the original ones.
I am sending you a small file that I use as a repository for Strava layers. They all work.

Thanks very much for the file, Felipe, all the links are working OK, with zoom limitation.

Quote
PS2. If you refer to obtaining more zoom through Strava cookies, you must repeat the process and configure everything again approximately once a week, the cookies expire and you will no longer be able to see the layers.
Yes, I know that, the problem is that I haven't been able to make it work and I'm not sure if I'm doing something wrong, or it's just that the process is not working anymore. Is it working for you?
Title: Re: Strava heatmap
Post by: LaurentG on April 23, 2021, 09:43:23 AM
Hi,

I just did a test.... and it doesn't work for me as well.
Whatever I set the cookie or not, I do not get anything above level 12
But maybe I'm wrong setting the
<httpparam name="Cookie"><![CDATA[_strava4_session=....]]></httpparam>
Title: Re: Strava heatmap
Post by: afgb1977 on April 23, 2021, 12:39:14 PM
Quote from: Pinod on April 23, 2021, 08:48:54 AM
Quote from: afgb1977 on April 23, 2021, 01:36:05 AM
Use the original Strava links, there are at least 40.
AnyGIS links have server problems, the only advantage is that it has 1-2 zoom levels more than the original ones.
I am sending you a small file that I use as a repository for Strava layers. They all work.

Thanks very much for the file, Felipe, all the links are working OK, with zoom limitation.

Quote
PS2. If you refer to obtaining more zoom through Strava cookies, you must repeat the process and configure everything again approximately once a week, the cookies expire and you will no longer be able to see the layers.
Yes, I know that, the problem is that I haven't been able to make it work and I'm not sure if I'm doing something wrong, or it's just that the process is not working anymore. Is it working for you?

Hello. I had not seen the message originating from this thread. I think it is the third method that I have found.

I leave you a link to the OSM wiki where another method is described. In this, the cookie settings go directly to the URL.

https://wiki.openstreetmap.org/wiki/Strava

Seeks "Global Heatmap in High Resolution".
I'm going to look for the other description, I don't remember where I read it. Take this opportunity and leave you a link to the OruxMaps group on Telegram.

https://t.me/OruxMapsGPS
Title: Re: Strava heatmap
Post by: Pinod on April 23, 2021, 06:14:36 PM
Quote from: afgb1977 on April 23, 2021, 12:39:14 PM

I leave you a link to the OSM wiki where another method is described. In this, the cookie settings go directly to the URL.

https://wiki.openstreetmap.org/wiki/Strava

Seeks "Global Heatmap in High Resolution".
I'm going to look for the other description, I don't remember where I read it. Take this opportunity and leave you a link to the OruxMaps group on Telegram.

https://t.me/OruxMapsGPS

Thanks for the link, I know Strava is working in high resolution in JOSM, Id and some other software, in fact, it was me who wrote that section of the OSM Wiki a few months ago, haha.  ;D

However, I still can't make it work in Orux.

The instructions on the wiki for JOSM / ID  are very clear, you  just have to replace the bolded text with the proper activity / colour /cookies values:
https://heatmap-external-{switch:a,b,c}.strava.com/tiles-auth/ACTIVITY/COLOR/{zoom}/{x}/{y}.png?Key-Pair-Id=MYVALUE&Policy=MYVALUE&Signature=MYVALUE
...and voilà, you have the strava heatmaop in high resolution availiable for one week in JOSM / ID

Now, let's go back in Orux. After reading all the preavious posts, once I get the cookies from the HAR file, it's still not clear what argument must I replace here:

<httpparam name="Cookie"><![CDATA[ajs_user_id=22***]]></httpparam>

I suppose is this one, but it's not working:
<httpparam name="Cookie"><![CDATA[ajs_user_id=22***]]></httpparam>

I've tried several other options, no luck.  :(









Title: Re: Strava heatmap
Post by: LaurentG on April 23, 2021, 08:10:21 PM
Quote from: afgb1977 on April 23, 2021, 12:39:14 PM

I leave you a link to the OSM wiki where another method is described. In this, the cookie settings go directly to the URL.

https://wiki.openstreetmap.org/wiki/Strava

Seeks "Global Heatmap in High Resolution".

I just tried with this method (in OruxMaps, not in JOSM) : doesn't work (at least for me....)   :'(
Title: Re: Strava heatmap
Post by: LaurentG on April 23, 2021, 08:18:02 PM
Quote from: Pinod on April 23, 2021, 06:14:36 PM
However, after reading all the preavious posts, once I get the cookies from the HAR file, it's still not clear what argument must I replace here:

<httpparam name="Cookie"><![CDATA[ajs_user_id=22***]]></httpparam>

I suppose is this one, but it's not working:
<httpparam name="Cookie"><![CDATA[ajs_user_id=22***]]></httpparam>

I've tried several other options, no luck.  :(

No, the value to replace is what is between [...] in ![CDATA[ajs_user_id=22***]]
ie. replace ajs_user_id=22*** by the list of all cookies, in the form xxx=...; zzz=... ; etc...

But I did the test.... and unfortunately, it doesn't work ...  :'(

Title: Re: Strava heatmap
Post by: Pinod on April 24, 2021, 08:51:59 AM
Quote from: LaurentG on April 23, 2021, 08:18:02 PM

No, the value to replace is what is between [...] in ![CDATA[ajs_user_id=22***]]
ie. replace ajs_user_id=22*** by the list of all cookies, in the form xxx=...; zzz=... ; etc...

But I did the test.... and unfortunately, it doesn't work ...  :'(

I've just done it and... it worked!  ;D

This is what I did, I'll reorganize the info on the previous posts here as a reference:

  • Create a Strava account (it's free)
  • Use Chrome to browse to the Strava Heatmap site (https://www.strava.com/heatmap
  • Login in Strava to be able to zoom at max. level
  • Open Chrome Console:Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, Chrome OS)]-> network, filter for .png
  • Right click an entry in the column Name and select Save all as HAR with content


Now, search for the cookie values in the .har file, and copy the bolded text:

      {
              "name": "cookie",
              "value": "ajs_anonymous_id=%22636dbaca-b61a-4ccc-8999-c40712dd_COPY_THIS_TEXT..."
            },


Now, paste that text here:

<onlinemapsource uid="716">
<name>Strava heatmap cycle hot (STRAVA)</name>
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>
<minzoom>6</minzoom>
<maxzoom>23</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="Cookie"><![CDATA[PASTE_TEXT_HERE]]></httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

And finally, copy and paste the whole thing in your onlinemapsources.xml file (folder: \oruxmaps\mapfiles\customonlinemaps). Refresh your map list and the strava heat map should be availiable and working.



Note: If you want different activities / colour, you can replace this values:
<url><![CDATA[https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256]]></url>

ACTIVITY:
run
ride
both
winter
water
all

COLOR:
blue
red
bluered
purple












Title: Re: Strava heatmap
Post by: LaurentG on April 24, 2021, 09:30:54 AM
Bingo, it works ! Thanks a lot !  :D

My problem was that the Url has to be slightly modified when used with authentication cookies as

https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256

Many thanks to have published the full example that showed me what's wrong !

On the other hand, max zoom level is 16. At 17 and above, nothing.
So it's better to have

<maxzoom>16</maxzoom>
Title: Re: Strava heatmap
Post by: afgb1977 on May 02, 2021, 05:21:59 PM
Quote from: LaurentG on April 24, 2021, 09:30:54 AM
Bingo, it works ! Thanks a lot !  :D

My problem was that the Url has to be slightly modified when used with authentication cookies as

https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256

Many thanks to have published the full example that showed me what's wrong !

On the other hand, max zoom level is 16. At 17 and above, nothing.
So it's better to have

<maxzoom>16</maxzoom>

Hello.
I just made a discovery that dropped cookies. I randomly found a Strava url that goes through the freemap.sk proxy, 256 zoom max = 16, 512 zoom max = 15, I made the usual changes in the url and I could to get all the STRAVA ALL in Blue, bluered, gray and hot. These are the variables that I use, so I assume without testing that the other Strava links are functional.
I think they are the best solution and alternative to the weekly configuration of Cookies and the AnyGIS links that do not work.
I leave the link to freemap.sk GitHub in case you want to read more about it, I am configuring a small file with ALL layers at 256 and 512 and I'll upload it to this post thread in a few moments.
Without finishing reading the documentation well, I see a User parameter on the GitHub page and I assume that the personal traces could be displayed.

https://github.com/FreemapSlovakia/strava-heatmap-proxy
Title: Re: Strava heatmap
Post by: afgb1977 on May 02, 2021, 06:15:03 PM
Quote from: afgb1977 on May 02, 2021, 05:21:59 PM
Quote from: LaurentG on April 24, 2021, 09:30:54 AM
Bingo, it works ! Thanks a lot !  :D

My problem was that the Url has to be slightly modified when used with authentication cookies as

https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256

Many thanks to have published the full example that showed me what's wrong !

On the other hand, max zoom level is 16. At 17 and above, nothing.
So it's better to have

<maxzoom>16</maxzoom>

Hello.
I just made a discovery that will end the cookie problem. I randomly found a Strava url that goes through the freemap.sk proxy, 256 zoom max = 16, 512 zoom max = 15, I made the usual changes in the url and ask to get all the STRAVA ALL in Blue, bluered, gray and hot. These are the variables that I use, so I assume without testing that the other Strava links are functional.
I think they are the best solution and alternative to the weekly configuration of Cookies and the AnyGIS links that do not work.
I leave the link to freemap.sk GitHub in case you want to read more about it, I am configuring a small file with ALL layers at 256 and 512 and in I'll upload it to this post for a moment.
Without finishing reading the documentation well, I see a User parameter on the GitHub page and I assume that the personal traces could be displayed.

https://github.com/FreemapSlovakia/strava-heatmap-proxy

Strava freemap.sk

Contains 8 URLs.
Strava ALL Blue, BlueRed, Gray and Hot.
256= ZoomMax= 16
512= ZoomMax= 15
Folder = TEST

I assume, without testing it, that the other Strava layers can be configured by making the usual changes to the URL. (run / blue /, both / bluered / ...)
Title: Re: Strava heatmap
Post by: LaurentG on May 02, 2021, 10:09:53 PM
Sounds good !
Thank you

Only drawback : server seems to be a little bit slower...
Title: Re: Strava heatmap
Post by: Pinod on May 03, 2021, 04:29:11 PM
Quote from: afgb1977 on May 02, 2021, 06:15:03 PM
Quote from: afgb1977 on May 02, 2021, 05:21:59 PM
Quote from: LaurentG on April 24, 2021, 09:30:54 AM
Bingo, it works ! Thanks a lot !  :D

My problem was that the Url has to be slightly modified when used with authentication cookies as

https://heatmap-external-a.strava.com/tiles-auth/ride/hot/{$z}/{$x}/{$y}.png?px=256

Many thanks to have published the full example that showed me what's wrong !

On the other hand, max zoom level is 16. At 17 and above, nothing.
So it's better to have

<maxzoom>16</maxzoom>

Hello.
I just made a discovery that will end the cookie problem. I randomly found a Strava url that goes through the freemap.sk proxy, 256 zoom max = 16, 512 zoom max = 15, I made the usual changes in the url and ask to get all the STRAVA ALL in Blue, bluered, gray and hot. These are the variables that I use, so I assume without testing that the other Strava links are functional.
I think they are the best solution and alternative to the weekly configuration of Cookies and the AnyGIS links that do not work.
I leave the link to freemap.sk GitHub in case you want to read more about it, I am configuring a small file with ALL layers at 256 and 512 and in I'll upload it to this post for a moment.
Without finishing reading the documentation well, I see a User parameter on the GitHub page and I assume that the personal traces could be displayed.

https://github.com/FreemapSlovakia/strava-heatmap-proxy

Strava freemap.sk

Contains 8 URLs.
Strava ALL Blue, BlueRed, Gray and Hot.
256= ZoomMax= 16
512= ZoomMax= 15
Folder = TEST

I assume, without testing it, that the other Strava layers can be configured by making the usual changes to the URL. (run / blue /, both / bluered / ...)

It works great, also for all other activities.

Thanks very much!  :)
Title: Re: Strava heatmap
Post by: franck.etienne on May 20, 2021, 12:07:46 AM
Hi all,

It's necessary to take all the string after value and then it works  :)

What is the url for https://github.com/FreemapSlovakia/strava-heatmap-proxy ?
Title: Re: Strava heatmap
Post by: afgb1977 on May 20, 2021, 01:26:07 AM
Quote from: franck.etienne on May 20, 2021, 12:07:46 AM
Hi all,

It's necessary to take all the string after value and then it works  :)

What is the url for https://github.com/FreemapSlovakia/strava-heatmap-proxy ?

Hello.
I share the links that I am using from Strava with the proxy freemap.sk

⬇️⬇️⬇️
Title: Re: Strava heatmap
Post by: LaurentG on March 21, 2022, 04:28:24 PM
Unfortunately, it seems that getting strava heatmaps thru freemap.sk proxy do not work any more.

We are now (as before...) obliged to get them directly on strava server... that mean to update quite frequently the "cookie" line in onlinemapsources.xml

This is not really blocking, but not very easy to do, in particular due to the length of cookies to set. Too bad  :(
Title: Re: Strava heatmap
Post by: LaurentG on March 21, 2022, 04:47:09 PM
Very strange  ??? ??? ???

I did several tests, less than one hour ago, and was 100% unable to get heatmaps via freemap.sk proxy.
And now, it works ! ??? ???

Wat happened ? I definitely don't know, don't understand.... but I'm happy it works again  :D