โก Problem
Carriers drive large trucks for several hours straight, and if they are not well rested, they can experience fatigue and sleepiness on the road. Drowsiness while driving is hazardous for carriers and surrounding drivers. Keeping carriers awake and alert could save lives.
๐ฏ Ideal Goal
Ensure carriers stay awake while driving.
We wanted to challenge 123LOADBOARD's ideal goal's reactive nature and propose a preventive solution to the problem instead.
DrooVE is a smart itiniary planner that suggests a driving itiniary to follow throughout the trip. The web-app takes into account the user's departing position, destination, preferred time of arrival and numbers of hour of sleep in the past 12 hours to determine a itiniary, with specific resting areas that can be stayed during the trip.
Backend: Node.JS with Google Maps API
Frontend: Vanilla JS with TailWindCSS
CodeJam12 is everybody's first hackathon, so coming up with a proper project outline with clear task delegation was a challenge.
Additionally, most of the team were familiar with different tech stacks, so having everyone adapt to Node.JS was a challenge as well
Logistically, there was no readily availible APIs that can look for rest areas alongside a route, and our backend team had to combine two of Google Map's API to write our own algorithm that finds said rest areas.
The most important step would be to implement DRooVE as a mobile app, allowing truck drivers to have easy access to the trip planner while on the go. (We lacked the technical knowledge to do so) Additionally, a database implementation in the future can enable users to have their own profiles to make using the planner a more personalized experience (history of past travels, sleeping habits/schedule, etc.). Finally, a rolling algorithm that stores user data and improves with the number of times of usage would be a great tool for truckers as well.
Prerequesite: Google Maps API key
- Clone the repo
npm i
- Create a
.env
and create a variableMAPS_API_KEY
- Assign your Google Maps API key to
MAPS_API_KEY
- Put your Google Maps API key in the URL in
<script>
section ofplantrip.html
- Start the server by
node server.js
- Open
login.html
and enjoy.
Note: The login page is hard-coded, any username with @
included will work