🚴 Safer Pathfinding with Google Maps
- 2 mins
I joined a group of five other students at UBC over a weekend of hacking at VANquish Collisions Hackathon hosted by the City of Vancouver. With the goal of reducing traffic collisions in high density areas, our solution was to find ways to incentivise different modes of transportation beyond cars. The end product was BikeSafe; a web application that finds bicycle tracks and maps rides for cyclists. We believed that an influx of bikers would often face challenges of finding safe routes. Contrary to Google Maps’ pathfinding algorithm, BikeSafe returns cyclists both the safest and practically shortest route to their destination. During my time with the team, I helped brainstorm and later develop features such as:
- making smarter, more specific recomendations - using Vancouver’s 1996-2016 collision data provided, our route calculation algorithm weighs safety over shortest path via avoiding high collision zones and dangerous intersections. We classified collisions by factors such as vehicle categories (i.e motorists, pedestrains) and collision severity (i.e fatal, non-fatal) to inform decision making as well.
-
choosing the most promising path - route calculation was still computed by Google Maps (mainly because I wanted the sponsor stickers, but I guess their tech is pretty alright too).
-
helping users make informed decisions - the location of collision and severity (D = DEATH, S = SEVERE, M = MINOR) is displayed on the map interface itself, so that users can confirm the recommended route, and adjust routes if they so choose.
- robust polyline rendering - it took so long, just to display dynamic lines from point A to point B. AHHHH.
Final Design
As it is, BikeSafe is a prototype to inform cyclists of short and safe paths using past traffic collision data. Given we had limited time to build this, route calculation is only Metro Vancouver-specific, and not subject to changes in traffic patterns over time. I only realized this later, but we’d failed to notice certain disparities when recommending paths for cyclists as opposed to cars. For instance, steeper inclines and harsher road conditions may fit people’s confidence (and stamina) as a cyclist differently. Not all cars are created equal, but when it comes to cyclists, opting to take a possibly longer and steeper route separated from traffic could be far more dangerous. Perhaps for another time, I’m going to catch up sleep.