Identifying where to grow the hydrogen ecosystem requires a map-based tool that visualizes all existing/planned assets (plants, storage, pipelines, distribution hubs) and uses data-driven models to guide new investments. This problem involves creating an interactive map layered with infrastructure data, renewable energy sources, demand centres, and transport logistics. The tool should offer site selection recommendations for new projects based on criteria such as proximity to renewable generation, market demand, regulatory zones, or cost optimization.
Hβ-Optimize is a sophisticated geospatial intelligence platform designed to revolutionize green hydrogen infrastructure planning in Gujarat, India. By leveraging advanced algorithms and comprehensive data analysis, our solution offers precision-driven location recommendations for optimal hydrogen production facilities.
- Data Collection & Integration - Comprehensive geospatial data on energy resources, infrastructure, and demand centers
- Multi-factor Analysis - Algorithmic assessment based on proximity, capacity, and economic factors
- Location Scoring - 300-point rating system evaluating infrastructure, technical, and operational factors
- Visualization Layer - Interactive map displaying optimal locations with detailed analysis
- Decision Support Tools - Advanced financial modeling and technical risk assessment
- Export Capabilities - Downloadable reports in multiple formats (PDF, CSV, JSON)
- Python 3.11+ (Backend)
- Node.js 18+ (Frontend)
- MongoDB (Database)
# Start Backend
.\start-backend.ps1
### Manual Setup
#### Backend Setup
```bash
cd backend
python -m venv venv
# Windows
.\venv\Scripts\activate
# Linux/Mac
source venv/bin/activate
pip install -r requirements.txt
uvicorn server:app --host 0.0.0.0 --port 8080 --reloadcd frontend
npm install --legacy-peer-deps
npm start- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
- API Documentation: http://localhost:8080/docs
- Updated FastAPI to v0.116.1 (latest stable)
- Replaced deprecated
@app.on_event()with modernlifespancontext manager - Updated all dependencies to latest stable versions
- Added uvicorn[standard] with enhanced performance features
- Improved startup/shutdown lifecycle management
- β Interactive map functionality - fully working
- β Marker interactions and popups - fully working
- β Optimal location analysis - fully working
- β Backend API integration - fully working
- β Professional UI/UX design - fully working
β οΈ Search functionality - autocomplete needs improvement
βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
β Client Browser ββββββββΊβ React Frontend (UI) β
βββββββββββββββββββββββββββ βββββββββββββ¬ββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββ
β FastAPI Backend API β
βββββββββββββ¬ββββββββββββββ
β
ββββββββββββββββββββββΌβββββββββββββββββββββ
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Data Services β β Analysis Engine β β Export Services β
ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ ββββββββββ¬βββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β MongoDB Atlas β β Computational β β Report Generatorβ
β Database β β Pipeline β β Services β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
- Modern Python 3.13 async/await patterns
- MongoDB with Motor async driver
- Pydantic v2 for data validation
- CORS enabled for frontend integration
- Auto-generated OpenAPI docs
- React 19 with modern concurrent features
- useDeferredValue for optimized search performance
- startTransition for non-blocking state updates
- Enhanced error boundaries and Suspense
- Feature toggle to compare React 19 vs Classic modes
- Tailwind CSS for styling
- Axios for API communication
- Component-based architecture
The Hβ-Optimize platform utilizes high-quality geospatial data compiled from authoritative sources:
- Energy Infrastructure - Comprehensive mapping of renewable energy sources with precise latitude/longitude coordinates, capacity ratings, and generation metrics
- Industrial Demand Centers - Accurately positioned industrial facilities with hydrogen demand projections based on sector analysis
- Water Resources - Detailed mapping of water bodies and treatment facilities with quality ratings and capacity metrics
- Transportation Networks - Complete road and rail infrastructure with accessibility scoring
- Economic Factors - Region-specific cost analysis incorporating local economic conditions
All location data includes precise geographical coordinates (latitude/longitude) enabling accurate distance calculations and proximity analysis. Our data undergoes rigorous validation to ensure reliability for investment-grade decision making.
- Python (FastAPI) - Modern high-performance API framework
- MongoDB - NoSQL database with geospatial indexing
- Pydantic - Data validation and settings management
- Uvicorn - ASGI server for high-performance API serving
- Computational Packages - NumPy, Pandas, SciPy for analytical processing
- React 19 - Modern UI library with concurrent features
- Leaflet.js - Interactive mapping library
- Tailwind CSS - Utility-first CSS framework
- Recharts - Composable charting library
- Shadcn/UI - High-quality React components
- Axios - Promise-based HTTP client
- Multi-layer Visualization - Toggle between energy sources, demand centers, water resources, and optimal locations
- Dynamic Data Rendering - Performance-optimized marker clustering and viewport management
- Custom Map Icons - Intuitive visual indicators for different infrastructure types
- Resource Coverage Rings - Visual representation of resource accessibility radius
- Comprehensive Scoring System - 300-point scale evaluating multiple factors:
- Infrastructure (40%): Transportation, power, and water access
- Technical (30%): Risk assessment, performance metrics
- Operational (30%): Maintenance requirements, operational efficiency
- Economic Analysis - Detailed CAPEX/OPEX breakdown, ROI projections, payback period calculation
- Technical Risk Assessment - Quantified risk factors with mitigation strategies
- Resource Allocation Visualization - Interactive charts showing cost distribution
- City Search Functionality - Quick navigation to regions of interest
- Proximity Analysis - Distance-based scoring to critical resources
- Multi-criteria Optimization - Balanced assessment of competing factors
- Site Comparison - Head-to-head evaluation of multiple potential locations
- Intuitive Interface - Clean, professional design optimized for decision-makers
- Responsive Layout - Fully functional across desktop and tablet devices
- Accessible Design - WCAG-compliant UI components
- Performance Optimization - React 19 concurrent features for smooth interactions
- Multiple Format Support - Export data in PDF, CSV, and JSON formats
- Custom Report Generation - Tailored analysis reports for stakeholders
- Raw Data Access - Direct access to underlying datasets for further analysis
# In backend directory
black . # Code formatting
isort . # Import sorting
flake8 . # Linting
mypy . # Type checking
pytest tests/ # TestingCreate .env files in both backend and frontend directories:
Backend (.env)
MONGO_URL=mongodb://localhost:27017
DB_NAME=h2_optimizeFrontend (.env)
REACT_APP_BACKEND_URL=http://localhost:8080
WDS_SOCKET_PORT=0GET /api/energy-sources- Renewable energy sourcesGET /api/demand-centers- Industrial demand centersGET /api/water-sources- Water infrastructureGET /api/water-bodies- Water bodiesGET /api/gas-pipelines- Gas pipeline networksGET /api/road-networks- Road transportation networksGET /api/cities?q=- City search (autocomplete)GET /api/optimal-locations- Algorithmic optimal locations (grid-based)POST /api/analyze-location- Analyze a single locationPOST /api/calculate-optimal-locations- Grid search within bounds- New infra:
GET /api/pipelines,GET /api/storage-facilities,GET /api/distribution-hubs - Advanced:
/api/v1/advanced/*(comprehensive analysis, comparisons, capacity optimization, financial modeling) - More details in API docs at
/docs
Note: These files are example outputs produced by the export feature for any selected hydrogen plant location. They include real, computed metrics for each plant, calculated by high-end algorithms in real time on screen, and demonstrate what your exported CSV/JSON/PDF reports will look like.
- Project Demo Video - Visual walkthrough of key features
- Calculated Dataset CSV - Detailed System Dataset
- Calculated Dataset For Investment JSON - In Depth detailed dataset for Investment
- Calculated Dataset/Charts PDF - Financial assessment end to end pdf.
- Urban and Regional Planners - Optimize infrastructure development
- Energy Companies - Identify strategic investment opportunities
- Project Developers - Evaluate potential production sites
- Policy Analysts - Assess regional hydrogen readiness
- Capital Efficiency - Directs investments to high-impact, high-yield locations
- Cost Optimization - Minimizes redundant infrastructure development
- Risk Reduction - Identifies and quantifies location-specific risks
- Sustainability - Facilitates coordinated growth of green hydrogen networks
- Data-Driven Decisions - Replaces intuition with quantitative analysis
- Location Database: 500+ analyzed sites across Gujarat
- Data Points: 15,000+ infrastructure elements mapped
- Analysis Factors: 25+ weighted criteria in algorithm
- Performance: Sub-second response time for location queries
- Team Eagles @ DA-IICT
- Project Mentors: Faculty of DA-IICT
π‘ Built for Gujarat's Green Energy Future πΏ