Strava API + Map

A lot of us at SfG are pretty avid bikers and use Strava to track our rides. I decided to build an API so that we could brag in the chatroom about our latest ride. One thing led to another and I ended up building a Rails app that automatically stores our team's rides to a database (Strava by itself only lets you request the last two weeks of rides for a team through their API).

From this API, we're able to show our weekly and yearly mile leaderboard on our dashboard in the office and ask Hubot about our recent rides. For giggles and a learning opportunity, I decided to work with some JS mapping libraries and also build out a small frontend that shows a map of the last two weeks of rides by people in the office - complete with color codes and details

View The Code View The Map