📜 ⬆️ ⬇️

Set up the Strava heatmap layer in OsmAnd

The OsmAnd application for phones on the android operating system has the ability to add additional layers to OSM (Open Street Map) maps. A useful addition to your navigation system will be the Strava heatmap layer, the result of the tracks, runners, cyclists, and swimmers recorded during trips and workouts. Visualization of this data allows us to find, on one side, the most popular routes, highlighted by impressive lanes, in navigation, and to determine the cross-country ability or throughput of the site on the terrain through thin threads of single tracks.

Since 2018, Strava labs has provided free access to low-resolution tails. This happened, apparently, for “safety assurance” in response to publications about a massive declassification of the location of user training.

To search for popular routes of low detailing is quite enough, but in order to assess whether we pass a part of the terrain, we need records of single tracks.

I will give an example. In the screenshot of the phone screen you can see that the descent along the path down the Akhun mountain to the Agursky waterfalls (1) is a fairly popular hiking and cycling (note, only for bicycle extremes!) Route. But to overcome the slope of 1.5 km from the road to the top of Akhun to the Chertovy Vorota canyon (2) on the Khost river, the final point of the Yew-boxwood trail (3), with all the seductiveness of such a walk is unlikely to work. When approaching the map, it will be visible on the single tracks that there have been attempts at such an obvious challenge, but they all ended in failure.
')


Connect OsmAnd Strava heatmap in low resolution


Let's look at how to set up the Strava heatmap layer on your smartphone. To connect heatmap in OsmAnd in low resolution, create a new source for the layer (Menu -> Configure Map -> Map Source -> Set / Edit ...)



Name the new layer, for example, heatmap cycling (not detailed)
We set the URL for downloading the emails:
https://heatmap-external-{switch:a,b,c}.strava.com/tiles/cycling/bluered/{zoom}/{x}/{y}.png?px=256 tiles/ -     cycling/ -  ,     ride, both, all bluered/ -  ,    hot, grey ?px=256 -    OsmAnd 


You can choose a suitable representation of the layer in OsmAnd by switching the settings on the Strava map.
For hiking, for example, adjust the bluered palette, and for the bike hot and switch depending on your trip. The differences between these “hitmaps” are minimal, but sometimes these differences are important. Where there is a mountain path and you can go, it is not always possible to drive.

Setting the detailed layer Strava heatmap


In order to display detailed tails in your OsmAnd, you will need to specify a different path to the images (/ tiles-auth) and add authorization to the source for the card, which we will take from browser cookies.

Link example:
 https://heatmap-external-{switch:a,b,c}.strava.com/tiles-auth/running/bluered/{zoom}/{x}/{y}.png?px=256&Key-Pair-Id={1}&Signature={2}&Policy={3} : {1} = CloudFront-Key-Pair-Id {2} = CloudFront-Signature {3} = CloudFront-Policy 


To get these settings, log in to Strava and copy the corresponding cookie values. In Chrome, type in the address bar: chrome: // settings / cookies / detail? Site = strava.com. To view cookies in Firefox, press Shift + F9.

An example of a Front-Policy field value to add to a URL.

Set the transparency adjustment of the coverage map, using this slider you can adjust the optimal view of the map.

Check the size of the data / net.osmand / files / tiles folder where downloaded maps are cached. I have accumulated 0.5 Gb in 2 weeks of use. When deleting folders with images of maps of different scales, save the .metainfo file



Finally


Customize your maps in OsmAnd, enjoy popular routes, look for difficult, but interesting, carefully plan to overcome the places where no one has ever walked or traveled. Interesting and safe travel!

Source: https://habr.com/ru/post/450124/


All Articles