Inspiration

sustainability, making a greener world

When making travel plans, the factor we usually are most concerned about is how fast and how cheap we can make our journey. We, however, believe it is also important to take into account the carbon emissions as well while making travel plans and wanted to make it easier and more accessible for people to make that decision with a browser extension.

What it does

gives a eco-friendly travel train route based on a start point and destination city. It takes into account the length of the travel route, the type of train engine(diesel, electric, hybrid) and produces a pollution metric that is relative to the pollution of a diesel engine.

How we built it

We used glitch in order to edit the programme together. We used an html file as well as a javascript file. We took the starting place and destination from the user. Using this we checked it against an existing database( in reality we would retrieve the data from the official trains website, here we made up a dummy database). We then calculated our pollution percentages against a diesel engine trains. Then using string methods we found available routes and displayed them with their pollution percentages).

The outlook: To sort the route option by pollution percentages to tell the user the most eco-friendly routes

Challenges we ran into

Our main challenges were learning java script and html from a very little to no base knowledge of either language. Then being able to combine the two codes together to communicate was a further difficulty.

Accomplishments that we're proud of

understanding string methods learning a new programming language with minimal coding experience

What we learned

What's next for Ecotrain journeys

We hope we would be able to input more cities and more available routes. We could also get more specific engine design information to have a more accurate model. We also hope to be able to fix the formatting so that the website looks cleaner and more professional overall.

Built With

Share this project:

Updates