Inspiration
A few days back when I was driving through the ever degrading air quality in Delhi, India, I realized that there needs to be an app that shows me routes not just on the basis of the distance or traffic but also on the basis of the air quality of that particular region. And that is when I decided to build something which suggests the safest route possible!
What it does
This app/website gives you the least polluted route from a source to the destination among all the routes. All you need to do is, enter a source, destination, and vehicle you plan to travel in. We will calculate a mean air index score for every route and show you all the routes with the required time, the distance, and the mean of the AQI. You can choose the route you want to take and the app will redirect you to Google Maps Navigation. Users can register as many vehicles as they like.
How we built it
We have used Flutter to build the mobile app, HTML, CSS, JS for the frontend of the website, Python and Flask for the backend, Azure services to host the backend server. We used Github pages to host the website. We are using Google Cloud's Direction API for navigation and OpenWeather's Air pollution API for the AQI-related data. We are also using Carbon Interface's Vehicle API to get the CO2 emission for a car for a particular route
Challenges we ran into
It was a challenging product to build in just two days of space. We had to figure out how to render the routes on the screen with the correct waypoints. Efficiently calculating the mean air index was also a very tricky task.
Accomplishments that we're proud of
We are proud that we were able to fully execute our idea and make it a completely functional app/website. We are proud of the mean index feature and the route calculator. We are also proud of the backend structure we built for this project.
What we learned
We learned some basics of Google's Cloud Platform since we needed it for the Maps API. We also learned about the CO2 emissions of different vehicles and how they can affect our calculations.
What's next for GreenWay
We are looking to make our app/website more robust and accurate by building a more precise algorithm. Currently, since we are using the free tier of Google Maps API, we are unable to add more than 10 waypoints in the route. In the future, we will be working on this aspect so that the app gives accurate results for longer journeys.
Built With
- api
- azure
- figma
- flask
- flutter
- gcp
- javascript
- python

Log in or sign up for Devpost to join the conversation.