ParkPulse: Understand proposals that affect your parks. See the impact, shape the future.
# ParkPulse.ai
Contract Link - https://testnet.flowscan.io/contract/A.d63bdc807b56f6a5.CommunityVoting
## Inspiration
Growing cities often come at the cost of parks and trees, which are essential for clean air, community health, and quality of life. We wanted to create a tool that not only informs residents about the impact of proposed developments on their green spaces but also empowers them to participate in decisions that shape their neighborhoods. The inspiration came from witnessing communities losing green cover without clear insight into how it affects local health, air quality, and wellbeing.
## What it does
ParkPulse.ai allows users to:
- **Explore park proposals**: See any proposed changes to local parks before they happen.
- **Understand environmental impact**: Visualize greenery using NDVI and air pollution using PM2.5 data.
- **Make informed decisions**: Residents can see exactly how changes might impact their neighborhood, powered by AI Agent Gemini API which calculates NDVI and PM2.5 metrics.
- **Engage with the community**: Vote on proposals securely using Flow blockchain wallet integration, with transparency and anti-duplication measures.
- **Receive notifications**: Get email alerts when new proposals are created, ensuring community members stay informed.
In short, it bridges **data-driven insight** with **community engagement** to help shape healthier, greener cities.
## How we built it- **Frontend**: Next.js with React and Tailwind CSS for a responsive, modern, and consistent web interface with smooth chat experience.
- **Data & Maps**: PostgreSQL + PostGIS stores park polygons, handles spatial queries, powers interactive maps, and stores all proposal results reliably.
- **Geospatial Analysis**: Google Earth Engine integration for real-time NDVI calculations and environmental impact assessment.
- **Chatbot & AI-Agent**: Gemini 2.0 Flash powered AI agent answers questions about park size, population impact, NDVI, and PM2.5, providing real-time environmental impact analysis.
- **Blockchain & Identity**: Flow blockchain (testnet) and Flow wallet integration for secure, tamper-evident voting with transparent proposal management.
- **Smart Contracts**: Cadence smart contracts manage proposal creation, vote recording, and status updates on the Flow blockchain.
- **Email Notifications**: Automated professional email notifications keep community members informed about new proposals.
## Challenges we ran into- **Data integration**: Combining NDVI satellite data with PM2.5 measurements and park boundaries was tricky.
- **Blockchain adoption**: Ensuring users could easily sign in with Flow wallets without friction.
- **Duplicate prevention**: Implementing secure voting mechanisms to prevent duplicate votes while maintaining transparency.
- **Real-time insights**: Optimizing queries so NDVI and PM2.5 calculations update quickly on interactive maps.
- **Cross-platform integration**: Seamlessly connecting Flow blockchain with Next.js frontend and Python backend.
## Accomplishments that we are proud of- Built a full-stack platform integrating **geospatial data, AI chatbots, and blockchain**.
- Made environmental impact transparent and understandable for everyday residents.
- Enabled secure, verifiable community voting on **Flow blockchain** that encourages civic engagement.
- Implemented real-time environmental analysis using **Google Earth Engine** and **Gemini API**.
- Created an intuitive user experience that makes complex environmental data accessible to everyone.
- Developed automated email notification system to keep communities engaged.
## What we learned- Numbers alone are not enough for the users, they respond well to **visual and interactive insights**.
- **AI-Agent and Gemini API** make complex environmental metrics understandable, helping residents make **informed, data-driven decisions** easily.
- **Flow blockchain** provides an excellent platform for civic applications with its developer-friendly Cadence language and low transaction costs.
- Combining multiple data layers (NDVI, PM2.5, population) requires careful normalization and caching for performance.
- Civic engagement increases when residents can **see the real-world impact** of their decisions.
- Email notifications significantly improve community participation and awareness.
## What's next for ParkPulse.ai- Expand to include **more environmental metrics** such as noise pollution, tree canopy density, and water retention.
- Integrate predictive modeling to show **future scenarios** if parks are removed or expanded.
- Partner with municipalities and NGOs to **scale adoption** and improve urban planning decisions.
- Launch mobile apps for on-the-go interaction and real-time proposal alerts.
- Deploy to **Flow mainnet** for production use with real communities.
- Implement **governance tokens** to reward active community participants.
- Add multi-language support to serve diverse communities.
- Create **dashboard analytics** for city planners and policymakers.
## Technology Stack
### Frontend- Next.js 14
- React
- TypeScript
- Tailwind CSS
- Mapbox GL JS
- Flow React SDK (@onflow/fcl)
### Backend- FastAPI (Python)
- PostgreSQL + PostGIS
- Google Earth Engine
- Gemini 2.0 Flash API
- SMTP Email Service
### Blockchain- Flow Blockchain (Testnet)
- Cadence Smart Contracts
- Flow Wallet Integration
### AI & Data- Gemini API for natural language processing
- Google Earth Engine for NDVI analysis
- Custom environmental impact models
---
**ParkPulse.ai** - AI-Powered Urban Intelligence Platform