An intelligent routing system that helps users make environmentally conscious travel decisions by predicting and minimizing carbon emissions for different routes.
- Real-time route calculation using HERE Maps API
- Distance and travel time estimation
- Carbon emission predictions for different routes
- Intelligent route recommendations based on environmental impact
- Neural network model for accurate emission predictions
- Considers multiple factors:
- Distance
- Traffic conditions
- Weather conditions
- Trained on real-world emissions data
- Continuous learning and improvement
- Carbon emission calculations in grams/kilograms
- Comparative analysis between routes
- Historical data tracking
- Environmental impact visualization
- Frontend: React.js
- Backend: Python
- Machine Learning: TensorFlow
- Maps API: HERE Maps
- Data Processing: NumPy, scikit-learn
- Clone the repository:
git clone https://github.com/yourusername/greenify.git
cd greenify- Install Python dependencies:
pip install -r requirements.txt- Install Node.js dependencies:
cd frontend
npm install- Set up environment variables:
# Create .env file in root directory
HERE_MAPS_API_KEY=your_api_key- Start the backend server:
python app.py- Start the React frontend:
cd frontend
npm start- Access the application at
http://localhost:3000
GET /api/routes
Parameters:
- origin: string (latitude,longitude)
- destination: string (latitude,longitude)
- mode: string (car, bicycle, walking)
Response:
{
"distance": float,
"duration": float,
"carbon_emissions": float,
"route_options": [...]
}POST /api/predict
Body:
{
"distance": float,
"traffic_level": int (1-10),
"weather_condition": int (1-10)
}
Response:
{
"predicted_emissions": float,
"confidence_level": float
}The system uses a neural network with:
- Input features: distance, traffic level, weather conditions
- Hidden layers: 64 and 32 neurons with ReLU activation
- Output: predicted carbon emissions
- Training metrics: Mean Absolute Error (MAE)
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature - Make your changes
- Submit a pull request
Required environment variables:
HERE_MAPS_API_KEY=your_api_key
ML_MODEL_PATH=path/to/model
DEBUG=True/False
- Add support for public transportation routes
- Implement real-time weather data integration
- Add user accounts and route history
- Develop mobile application
- Include carbon offset recommendations
- Add support for electric vehicles
This project is licensed under the GNU General Public v3.0 License - see the LICENSE file for details.
- HERE Maps for their routing API
- TensorFlow team for the machine learning framework
- Contributors and beta testers
🌍 Help reduce carbon emissions, one route at a time.