Strava put their Year in Review behind a paywall this year, so I downloaded my user data and visualized my year of running in Brooklyn & Manhattan.

edit: due to interest, please find the Python script here https://github.com/zhess31/StravaYearInReview

  • Super cool! I've tried to make something like this, but it didn't come out as nice. Could I ask what you used to make this? Something like QGIS?

    Thank you! I did this in Python using these packages:

    • Reading data: gzip, pandas
    • Parsing GPS: gpxpy, fitparse
    • Shaping & Clipping routes: shapely, geopandas
    • Projecting & mapping: contextily
    • Animating: matplotlib, numpy
  • This is super cool but also you’ve doxxed your address

    Even if Strava didn’t scrub .5mi off the start and end of the GPX files, the part of Brooklyn I primarily run in has a population density of ~75K people / sq mi which I hope provides me some anonymity (not a challenge pls don’t doxx me)

  • That is awesome dude! How did you do this? What programme did you use?

    All done in Python! See comment above for packages.

  • Beautiful! I hope more people share their Strava runs using your brilliant piece of code. This is exactly what the sub needs.

  • Good god man, go somewhere else!

  • Nicely done! Way better visual than the actual year in review. I'd be interested in script if you are willing to share it

    PM me!

    I am also interested, since I know very little about python but I run a lot … 😬

  • Cool! You can add more transparency to the paths so the map acts a heatmap also.

    Awesome idea! I tried this but got slightly iffy results. The GPX files have very slight differences (i.e., if I’m running on Kent Ave., the GPS may register 1 degree west of the previous day’s route on Kent Ave.) Could maybe add in a triangulation / scrubbing algo to define what constitutes frequency?

    There are many way to do it. I would load the data into osmnx and remap the GPS telemetry data to the actual streets graph. Then it will be more normalized. Anyways well done both on the runs and the visualization!

  • Isn’t North BK a nightmare for running? Cars & people - lots of stop starting…

    There is some sidewalk royalty for sure - people looking at their phones, not watching their dogs, etc. Domino -> the greenway in Greenpoint is an easy 3 mi with no stopping. Back streets of Greenpoint are all stop signs so if you move faster than a car it’s pretty easy to get across without stopping. McCarren and the track is obviously a game changer. Worth it to avoid the plague that is treadmill running!

  • This is awesome! I would love this script as well. Did you choose just the area to produce this? What if you have run over lots of places? Will the map just be zoomed out all the way?

    I am working on getting it parameterized so it’s a bit easier for folks to plug and play! Will add a comment with a GitHub link hopefully before the weekend.

    I did have runs all over (Northern Michigan, Illinois, Texas, treadmill runs) and just chose to include NYC because it’s where the majority of my runs were. Even zooming out slightly reduces the fidelity of the viz quite a bit, so works best with a tight cluster of runs!