AgriLand is a smart web application designed to assist in improving all types of agricultural lands — from barren lands to low-yield or underutilized lands — by using satellite data, soil analysis, real-time climate conditions, and AI-generated solutions.
The platform empowers users by providing expert recommendations, mentorship sessions, and personalized improvement roadmaps based on their selected land coordinates. Whether you're looking to reclaim barren land or enhance fertile fields, AgriLand supports sustainable and data-driven agricultural practices.
- 📍 Google Maps Integration for land selection
- 🧪 Soil analysis using SoilGrids API
- ☁️ Real-time weather data from Tomorrow.io API
- 🌾 NDVI, land cover, precipitation, slope & elevation data via Google Earth Engine (GEE)
- 🤖 AI-powered suggestions using Gemini API
- 👨🏫 Mentor booking system to connect with agricultural experts
- 🔐 Firebase Authentication & Firestore integration for secure user experience
- Gemini AI Assistance to help user to get more information about their land
- Frontend: HTML, CSS, JavaScript, EJS Templates
- Backend:Node.js, Express.js
- Database: Firebase Firestore
- Authentication: Firebase Authentication
- Session Storage:Firestore-based Sessions
- APIs Used:
- SoilGrids API (soil properties)
- Tomorrow.io (weather & climate)
- Google Earth Engine (NDVI, land cover, etc.)
- Gemini API (soil improvement suggestions)
- Hosted on render
- Users can select a location on the map.
- javascript geoloaction fetches the coordinates of the land choosen.
- Coordinates are submitted for analysis.
- If they click on submit location button without choosing location on map ,then their current device location coordinates(lat , long) are submitted.
- Fetch soil data using the SoilGrids API.
- Fetch weather/climate conditions using Tomorrow.io API.
- Extract land-related data from Google Earth Engine (NDVI, slope, elevation, etc.).
- Displays all analyzed data visually on
soilgrids.ejsandgemini.ejs.
- Gemini ai assistant to communicate with users
- View available mentors on
mentor.ejs. - Book a session by selecting date & time.
- Mentor and session info stored in Firestore.
- User authentication handled by Firebase Auth.
- Secure session storage using Firestore-based sessions.
AgriLand/ ├── config/ # Firebase and Google Earth Engine setup ├── modules/ # Optional datasets (NDVI, temperature, slope, etc.) ├── public/ # Static assets (CSS, JS, images) ├── routers/ # Express route handlers ├── utils/ # Middleware, session store, error handling ├── views/ # EJS templates for frontend ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── script.js # Main Express backend entry point
- AI-based crop prediction
- Fertilizer calculator tool
- Land monitoring alerts
- Chat-based mentor sessions
- Community forum for farmers so that they can share their results and opinions
- AI-model training using historical data
- Mobile app integration
- IOT and Real time monitoring
- Progress Tracking
- Government and NGO Parternships
- Multilingual support
- AgriLand helps landowners and farmers make informed decisions about land reclamation by analyzing land data and suggesting affordable solutions. It also connects them with mentors for guidance, fostering sustainable agriculture practices.
-
Clone the repository: https://github.com/swathi2006/AgriLand.git
-
Install dependencies: npm install
-
Add your Firebase and API config in
/configfolder. -
Start the server: node script.js
A huge shoutout to all the amazing open-source tools, APIs, mentors, and communities that helped shape AgriLand into reality. Built with 💚, code, and lots of coffee by Swathi for the Google Solution Challenge 2025. let’s make barren lands bloom again 🌱✨





