Routecheck.cc

Posted on
Page
of 6
Prev
/ 6
Last Next
  • Using Chrome, I only see the heatmap when fully zoomed out, it all disappears when zoomed in at all close (like, not close at all really - still looking at an area 50mi across).

  • Ah, I thought I noticed that yesterday but didn't dig in. Now I see they've changed the access:

    authentication is now required for data access beyond zoom level 12, please login to strava.com and then visit /auth

    Damn.. might need to add one of those "Log in with strava" oauth thingos :/

  • OK, not as bad as that.

    1. Need to change the tile URL (/tile/ -> /tile-auth/) in code
    2. User needs to be logged into Strava, then:
    3. User needs to hit https://heatmap-external-c.strava.com/auth once, which grants a 10 day Cloudfront cookie, now heatmap will work.

    Guessing this was a response to Strava's privacy malarky last year.

    Thinking of how this flow can be wrapped up into something user-friendly..

  • This is super cool! Next time I plan a route I'll give it a try and feed back if I have any problems

  • I'd forgotten about this... and probably will continue to until about mid-July... ;)

  • Hi, just had a go with this for the first time.

    Looks good but I noticed Map > 'Refresh' highlights unpaved roads, whether the 'Unpaved' checkbox is selected or not. The checkbox does turn visibility on and off as expected though.

    This is a minor 'rough edge' though....

    Chrome desktop.


    1 Attachment

    • Capture.PNG
  • Also, you can work around the Strava heatmap visibility issue fairly well with browser zoom.

  • Also, you can work around the Strava heatmap visibility issue fairly well with browser zoom.

    Hah!

    Good spot on the refresh/checkbox sync (fixed?)

  • I keep forgetting this is javascript. Can probably just fire a request at that blah blah /auth link, and prompt the user to log in to strava (off site) if it comes back denied. Simples.. unless poxy CORS gets involved.

  • Quick bit of hackery to get around the Strava tile auth thing. Essentially you just need to be logged into Strava for the heatmap to load.

    It's a bit of faff because Strava/Cloudfront haven't added a CORS header, so we can't just fetch the /auth URL directly. Jerks.

    Edit 22 May: not worthy of a bump, but just gave the UI a bit of love. Route builder moved to its own tab, better sizing on mobile, nicer tab headers, better line wrapping, and un-hid some options so you can actually switch the strava heatmap color scheme for eg.


    1 Attachment

    • Screen Shot 2018-05-15 at 7.39.49 PM.png
  • Turns out rwgps includes points of interest via the api, so now markers added there will load into this site - and can be re-exported with the route to a gpx.


    1 Attachment

    • Screen Shot 2018-05-31 at 11.23.09 PM.png
  • If routes are private then you can see them in the routes option, is it possible to change this?

    cc @Yemble
    Obvs all my routes are private for clear reason!

    Also I'm not getting heatmap, done the login/refresh? On chrome, works on firefox.

    But I can't tick the gpx box on firefox.

  • Cheers, will check when back at laptop. Hope they don't hide private routes in the api - that'd be stupid! Haven't tested in Firefox but sounds like an easy fix if that's a bug.

  • Cool let me know. Would be good to use.
    Germany is a nightmare for routing.

    Actually all my routes are private, but I can only see maybe 2 dozen, I’ve 100s of routes but only the oldest are showing.

  • Just tested on mobile, set some routes to private and they're definitely appearing regardless. Might have something to do with the large number of routes, I only have a few dozen. Will check the api details tonight - maybe it's paginated.

    Edit: yep that'll be it. Should be a quick fix.

  • Thanks.
    Shout when it’s fixed.

    Really useful for getting through Germany. Banned road bike path central.

  • Try now. I've made it request up to 9999 routes. Also fixed that firefox checkbox bug (probably). Difficult for me to test it without creating hundreds of bogus routes.

    Force a reload just to make sure you're on latest code (Shift-Ctrl-R / Shift-Cmd-R or whatever). It would update automatically in a few hours but that will force it to refresh immediately.

  • Just noticed the heatmap comment.. seems to work fine here on Chrome. I just tried in an Incognito window: no heatmap on first load, opened strava in new tab and logged in, reloaded routecheck site and got heatmap from then on.

    Try this, go to https://heatmap-external-c.strava.com/auth and make sure it says

    Logged in as AthleteId(xxxxx), cloudfront cookies set

    It's horribly clunky :/ I raised a support ticket with strava about this but they say there's no workaround currently. Once it works it should stick for a few weeks though.

  • Er, lost track of issues. Let me know if anything still horked :)

    All routes including private should be showing in the drop-down box. If you're worried about privacy, it's coming direct from RWGPS to your browser - the routecheck server is static and never sees that data, or your login.

  • Been to link and says what you say, but still no heatmap in chrome.

    I can now view all routes though so that's good.

  • in firefox if i zoom in too far, the heatmap disappears?

  • can you get distance markers to show on routecheck, would be useful for when flicking back to rwgps to edit something.

    Km please, what is a mile!

  • Please hold..

  • Distance markers added (set unit in the maps tab), and figured out the option to allow scaling of the heatmap layer so it'll get a bit blurry at max zoom but better than disappearing.

    No heatmap in chrome is totally weird. Can you try in an incognito Chrome window, do the strava login step and see if that works?

  • You work fast thanks!

    No luck in incognito. Just using ff.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Routecheck.cc

Posted by Avatar for Yemble @Yemble

Actions