Final project for Hackbright Academy, which produces randomly-generated bike routes
Vélocity is a tool allowing cyclists to discover new and interesting bike routes. This app dynamically generates and stores bike routes based on a user-specified location and either total distance or a midpoint location.
As an avid cyclist, I love finding new bike routes but find myself sticking to a handle of favorite rides (it’s hard to beat the Marin Headlands). The idea of a bike route generator was born. To allow for the greatest variety of routes, the generator randomizes the direction of the first leg, the number of waypoints, the length of each leg, and the clockwise or counterclockwise direction of the route. A predictive algorithm biases the routes in favor of the directions a user prefers riding.
The homepage allows the user to create a route based on:
On the backend, this project uses a predictive algorithm (Markov Chain) to determine the cardinal direction for the route based on the user’s historical route choices, generates a loop based on this information, and displays the route with corresponding metrics using Google Maps APIs. The Chart.js integration provides the user insight into data produced by this predictive algorithm.
Saved routes can be filtered and sorted to allow the user to find a route suiting their needs.
In order to generate the largest number of unique bike routes, I perform the following: