Inspiration

As an individual deeply concerned about the environmental impact of global trade, I was motivated to create a tool that could empower even small businesses to make more sustainable choices in their import logistics. I noticed a gap in readily available, user-friendly solutions that combined efficiency with environmental awareness.

What it does

GreenTrade Companion is a solo-developed web application that allows users to analyze and compare import routes. By inputting the origin, destination, and weight of their goods, the tool calculates and presents estimated travel times and carbon emissions for various route options. An integrated chatbot, leveraging the power of Gemini, provides direct assistance and answers user questions about the routes and sustainability aspects.

How I built it

This project was built independently using Python and several key libraries. Streamlit provided the framework for the interactive web interface. Pandas was used for managing the LOCODE location data. NumPy handled numerical computations, and Pydeck enabled the interactive map visualization of the routes. The core logic for route generation and calculations was developed in a custom Python module (route.py). Finally, the Gemini Pro model was integrated through its Python API to create the intelligent chatbot (chatbot.py). The foundation of the location data is a CSV file containing the global LOCODE dataset.

Challenges I ran into

As a solo developer, I faced challenges across various aspects of the project. These included navigating the complexities of global logistics and emission estimation, ensuring the accuracy and consistency of the LOCODE data, learning and implementing geospatial calculations and map rendering, and effectively integrating the Gemini Pro API while managing API usage. Balancing the development of the backend logic with the user interface design also required careful time management.

Accomplishments that I'm proud of

I am proud to have independently developed a functional application that addresses a significant need for sustainable trade practices. Creating an intuitive user interface with route comparison and map visualization, coupled with the intelligent assistance of the Gemini Pro chatbot, represents a significant achievement for a solo project.

What I learned

This project was an intensive learning experience. I gained practical skills in web development with Streamlit, data manipulation with Pandas, geospatial analysis, API integration with large language models, and the intricacies of global trade and environmental impact assessment. The process reinforced the importance of modular design and iterative development.

What's next for GreenTrade Companion

Future development as a solo project will focus on incorporating user feedback and gradually expanding functionality. Potential next steps include refining the route generation logic, exploring the integration of cost estimations, improving the accuracy of emission factors, and enhancing the chatbot's capabilities to provide more nuanced sustainability advice.

Built With

Share this project:

Updates