Today, transportation accounts for 28% of the carbon emissions in the world. Since this sector has so much influence on climate change, it's vital that we try to reduce transportation's greenhouse gas emissions.

What it does

This program calculates the carbon emissions of a trip that specified by the distance and the used vehicle's fuel type. The result is the amount of carbon emissions from the trip in kilograms. We hope to spread both awareness about the amount of carbon emissions from car trips, as well as resources to reduce further pollution.

How we built it

We used React to connect the frontend of the input and the output to the backend in javascript and an Express Framework where we used two APIs: ZipCode API to find the distance between two zip codes and Carbon Interface API to calculate the emissions based on the distance and vehicle. We validated the input to make sure it's the right format, and we stored the response in the memory using caching for speed.

Challenges we ran into

We had trouble with requesting an estimate from the Carbon Interface API because of vehicle id parameter needed. Also, arranging the layout components for the frontend was difficult.

Accomplishments that we're proud of

Everything is well connected, complete, and functional. We also feel like we are making a difference in our world because of this sustainable project idea.

What we learned

We learned how to better use the React software to stylize the frontend so that the pages look visually-appealing. We learned to use multiple APIs in the backend, and run a separate server program and frontend script.

What's next for CO2 CARculator

We would like to have the user input a specific car that they will use for the trip so that the emission calculations will be more accurate. We want to add more resources so that the users can use more green types of transportation.

(0:10 → Answer #1, 1:35 → Demo, 3:33 → Answer#3, 3:52 → Answer#4, 4:13 → Answer#5)

Built With

Share this project: