Inspiration
In order to tackle the immense problem of making travel greener, we wanted to make the user do the hard work and heavy lifting by tapping into their competitive side.
What it does
By ranking the 'greeness' and practicality of different routes, users get to compete to do their best to take care of our planet by travelling sustainably. We want to help people gamify their travel habits and be more green.
How we built it
Working with a flask/python backend and a react/javascript webpage, we are using openrouteservice API to plot the fastest routes by different mediums and then compare their eco-friendliness using weighting for those different routes and mediums.
Challenges we ran into
Integrating the API was a big initial hurdle, but was useful once we overcame it. Working with Flask and React was again intermittently frustrating, however, the biggest challenge was linking between the two. More than a couple of hours have been spent frustratedly attacking CORS errors with various fixes.
Accomplishments that we're proud of
Integrating the front and back end to produce a clear and informative UI that lets the user plot routes, calculate their eco-friendliness and compete to be the best. (We beat CORS)
What we learned
The importance of keeping code tidy while making a front-end look nice.
What's next for GreenRoute
Further development and significantly cleaning up the design into a cleaner finish. We would look at commercial applications through a similar route as strava or with businesses to expand into the sustainable travel sector properly.
Tips to use the demo
All dependencies/files should be in the Github (please contact KENT01 if not). [There is a video demo attached too!]
- open terminal and run
python back.py - run the following commands in a new terminal
cd my-app && npm run dev
Log in or sign up for Devpost to join the conversation.