by samcrawford · 7y ago · 0 comments
My bugbear is that all the existing apps suck. I want a way to say "give me a running route that lasts approximately 10km and is as scenic (greenery, water, mountains, etc) as possible, with few road crossing and is as safe as possible". Maybe I can even pick from the top 3 options. Existing apps can't do any of this.
This data is readily available (or can be derived) for many countries using the wonderful openstreetmap and other public sources (e.g. national hiking trail routes).
I've adapted the brilliant Graphhopper routing engine to handle the routing algorithm and alternative routes selection. PostGIS (with OSM + other data loaded) is used under the hood to generate weights for each of the "ways" (edges in OSM-speak) for each of my variables (e.g. greenery). I'm using Leaflet and leaflet-routing-engine on the frontend currently, but would like to make it into a native Android/iOS app in the future.
That said, the app would timeout if I tried to build a route over 15km long. Also, it doesn't seem to prefer scenic routes - it has me running on busy streets in London when there's the Thames very close by.
Although it appears you have to create an ImagineRun account to use it which means this goes straight into the "nope" bucket for me.
The motorcycling round-trip algorithm is quite crude, it relies on a user to pick a heading and then points N points in a circle on that heading and builds a route between them. It does not take into account any features of the map (e.g. forests, rivers, obstructions, etc). It's sufficient for longer distances though, but struggles on shorter distances.
My project isn't open source yet, but I hope to make it so if/when I finish it!
Strava's more recent "draw your route" feature is quite cool, but again it requires that you know the area and does not take into account the features of the land.
I had a look around in my last trip to the UK for short circuits with 5 to 10 KM, flat, not much obstacles, but couldn't find any.
Would be even better if I could also find some markers around the map indicating things like pull up bars or abs bench.
My frustration with Strava is that they have SO much good data, yet they do so little with it.
Whereas my frustration is that they have mountains of bad data (and we're sometimes talking egregiously bad here - segment times for runs that are >10,000mph etc.) which they do nothing about. It's a trivial data hygiene problem to note that, e.g., if an activity is marked as "running" and the average speed is 20mph+ over an hour, that's bullshit.