3 ms·
Anyone know how to download (a portion) of the dataset?
by emilfihlman 9y ago
Anyone know how to download (a portion) of the dataset?
- exikyut 9y agoHERE IS HOW TO DOWNLOAD IT I just spent a few minutes figuring it out. First grab some coordinates, I picked a totally random spot in NY: https://labs.strava.com/heatmap/#16.11/-73.96162/40.73006/hot/all https://labs.strava.com/heatmap/#16.11/-73.96162/40.73006/ho... Now feed the GPS coords into the algorithm at https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames I can use PHP faster than anything else, so I used the PHP example on that page. $zoom = 15; $lon = -73.96162; $lat = 40.73006; $xtile = floor((($lon + 180) / 360) * pow(2, $zoom)); $ytile = floor((1 - log(tan(deg2rad($lat)) + 1 / cos(deg2rad($lat))) / pi()) /2 * pow(2, $zoom)); print "x: $xtile\n"; print "y: $ytile\n"; This printed: x: 9651 y: 12318 If I go to https://heatmap-external-c.strava.com/tiles/all/hot/15/9651/12318 https://heatmap-external-c.strava.com/tiles/all/hot/15/9651/..., I can see a portion of the map that's on the screen. My email is in my profile, downloading this would be very fun. It would just need a tonne of bandwidth and even more diskspace, and I don't have much of either myself.
- maxerickson 9y agoI think they mean the underlying data rather than the tiles. MOBAC is made for caching map tiles: http://mobac.sourceforge.net/ http://mobac.sourceforge.net/
- emilfihlman 9y agoI mean the tiles because the actual dataset is not publicly available and I doubt it will ever be. One reverse a portion of the dataset from the tiles, though.
- maxerickson 9y agoYou could check the OSM gps layer to see if it has interesting data in the area; you can directly fetch the data there. https://www.openstreetmap.org/#map=18/38.03114/-78.52475&layers=G https://www.openstreetmap.org/#map=18/38.03114/-78.52475&lay... There's less traces than Strava has though.