Update May 2014: As Strava’s ride pages have changed format significantly, Giro-Your-Strava no longer works. The good news is that Mesmeride does the same and more!
After the Strava API debacle, my little Tour Segment Gradient tool no longer works, which is sad. I’d put together a number of other Strava API-based widgets, but this was the only one which was really at all popular. Yesterday, DC Rainmaker himself mentioned (thank you Ray!) the Giro-Your-Strava elevation graph tool (which does still work) on his blog, so what better time to update the Tour Segment Gradient tool?
In short, what I have done is to dump both the Giro and Le Tour gradient mashups into the same bookmarklet. One click and you get beautiful isometric graphs for your ride (in Giro style) and your efforts (in Le Tour style). Yes, I get the inconsistency, but what would life be without idiosyncracies?
1. Install the bookmarklet.
Here’s the bookmarklet. Just drag it to your Bookmarks toolbar to install it:
2. Load a favourite Strava ride and click the bookmark.
(It’s best to wait for the page to load completely before clicking the bookmark.)
Presto, you’ll get two spiffy new buttons, one for your ride:
And one for the segment view:
So go ahead and click the Giro button, and you’ll see:
Click the Le Tour button for the new elevation profile for a segment:
One danger with bookmarklets that fiddle with an existing site in this way is that they will tend to break when the site updates. There are no stability guarantees that APIs (ususally!) provide, so YMMV. However, if the Strava site layout changes, it’s probably only a simple tweak to the code to get it working again.
There’s nothing beautiful about the code on the backend. It really needs rewriting and modularisation etc etc etc but hey, it works 😉 Do what you want with the code, just share it with us all if you improve things!