Home → Posts
During Uncommon Hacks, I worked with 3 other students on Math.floor(it). Math.floor(it) is a rather silly web app designed to calculate the cost of speeding as well as its benefits. The idea came about when one of the team members wondered how much faster his 1-hour commute would be if he ignored all the traffic lights and drove 25 miles over the speed limit.
The app would work by taking in two addresses in Chicago where after pressing on the cute little car, it would plot a route between the two points, point out all the speed cameras and red light cameras along the way and give you information on time savings, fines and your probability of dying.
While making Math.floor(it), we faced a couple of challenges. Firstly, we discovered that the
isLocationOnEdge() function was unreliable since it would sometimes show up on paths where there was no camera touching the path as well as ignoring cameras on the path.
checkBounds() was a possible alternative, but given our time constraints, we choose to stay with
$.getJSON() to get the camera data.
In the future, we hope to refactor our code, add more cities, solve the
isLocationOnEdge inconsistencies and make further polished to the UI. We might also factor in additional data to improve the app’s accuracy since it’s unlikely that someone would drive 25 MPH over the speed limit without either a cop noticing or hitting traffic, less so in Chicago.
In all, our efforts won us two prizes; best beginner hack since this was there the first hackathon for one over of the team members as well as Most Uncommon for symbolizing the hackathon which was rather eccentric. After all, the prize was a Muppet plant. Given how we didn’t know each over before the even, we knocked up something pretty decent within a weekend.