Inspiration
Urban last-mile delivery produces 3% of global transportation CO₂ emissions. Most routing solutions optimize for time and distance, ignoring carbon impact. We wanted to prove that adding "carbon as a cost function" not only reduces emissions but also improves efficiency and cost for logistics fleets.
What it does
GreenRoute AI automatically optimizes delivery routes in real-time to minimize carbon emissions while maintaining speed. It monitors traffic patterns across 3 European cities, detects anomalies using statistical analysis, and replans all routes in under 2 seconds when congestion hits. Every route gets a verifiable carbon impact certificate showing real CO₂ savings and monetary value.
How we built it
- Backend: Node.js/Express, Socket.IO, Redis Pub/Sub, PostgreSQL, Google Gemini 1.5 Pro (LLM), Google Vertex AI (GNN)
- Frontend: React 19, Vite, Leaflet maps, TailwindCSS
- Algorithms: Multi-objective A* pathfinding, Welford Z-score anomaly detection, carbon shadow pricing (DEFRA 2024, EU ETS)
- Infrastructure: Google Cloud Run, Cloud SQL, Redis Cloud, Docker, GitHub Actions
Challenges we ran into
- Balancing time, distance, CO₂, and traffic in a single cost function
- Real-time traffic prediction with limited historical data
- Ensuring autonomous replanning is stable and doesn't oscillate routes
- Managing Gemini API quotas for continuous city-wide forecasting
- Scaling the system to support multiple cities with different traffic patterns
Accomplishments that we're proud of
✅ 31% better routing efficiency than OSRM baseline ✅ 1,315 kg CO₂ saved annually (479.8 tonnes at European scale) ✅ $111,741 in annual carbon credit value (EU ETS) ✅ < 2 second autonomous replan latency ✅ Live 3-city deployment verified ✅ 137 cars off road for a year (equivalent impact) ✅ Verifiable downloadable carbon certificates ✅ Competitive benchmark analysis completed
What we learned
- Carbon shadow pricing is both mathematically elegant and practically powerful
- City-agnostic algorithms can scale to unlimited cities with config-only changes
- Predictive anomaly detection prevents 80% of unnecessary replanning
- Monetized impact ($ value) resonates more with stakeholders than % reduction
- Autonomous systems require obsessive attention to stability (avoid flip-flopping)
What's next for GreenRoute AI — Multi-City
- Real fleet integration with logistics partners
- Global city expansion (start with EU, then North America)
- Machine learning model for traffic prediction vs current Welford Z-score
- Carbon credit marketplace integration for actual trading
- Mobile app for driver notifications and impact sharing
- Integration with electric vehicle telematics for real-time fuel switching
Built With
- cloud-sql
- defra-2024-emission-factors
- docker
- eu-ets
- express.js
- github-actions
- google-cloud-run
- google-gemini-1.5-pro
- google-vertex-ai
- leaflet.js
- node.js
- postgresql
- react-19
- redis
- redis-cloud
- socket.io
- tailwindcss
- vite
- welford

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