This project is an interactive mapping application built using React and Vite, with mapping functionalities powered by Leaflet and Google Maps API for tile layers. The application focuses on visualizing and interacting with location data for universities across Nigeria, providing users with comprehensive and real-time information about these institutions.
- Dynamic Map Rendering: Utilizes Leaflet for interactive map visualization.
- Google Maps API Integration: Fetches and displays tile layers, ensuring accurate and detailed mapping.
- Secure API Management: Manages API keys securely through environment variables.
- University Location Data: Loads data from an external JSON file containing details of Nigerian universities, including their latitude and longitude, fetched using the Google Maps API.
- Interactive Markers:
- Dynamically placed markers representing university locations.
- Popups displaying detailed information such as the institution's name and category.
- AI-Powered Data Fetching:
- Retrieves live updates about universities, such as the current vice chancellor and session status, using an AI agent.
- Features a chatbot that provides high-level, contextual responses to user queries about Nigerian universities.
- Access information about school fees, available hostels, courses, faculties, and admission cut-off marks.
- Obtain course requirements and general admission details in real time.
- Stay informed about university updates.
- Explore and compare institutions based on personal or research needs.
During the development of this project, a critical challenge arose: users had no direct means to inquire about specific details regarding universities. To address this:
- Google Maps API Integration: Enabled accurate location tracking of universities on the map.
- AI-Powered Chatbot: Added a chatbot feature capable of fetching real-time information about admission details, institution updates, and more, enhancing the user experience and making the application a comprehensive tool for educational research.
- Frontend Framework: React, Vite
- Mapping Tools: Leaflet, Google Maps API
- AI Integration: AI-powered agent for live updates and chatbot functionality
- Data Management: External JSON file for university data
- Environment Variables: Securely managing API keys
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd interactive-mapping-application
- Install dependencies:
npm install
- Create an
.envfile to securely store your Google Maps API key:
VITE_GOOGLE_MAPS_API_KEY=your_api_key_here
- Start the development server:
npm run dev
- Open your browser and visit
http://localhost:5173to view the application.
We welcome contributions to enhance the application's functionality. To contribute:
- Fork the repository and create your feature branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Add your message here"
- Push to your branch:
git push origin feature/your-feature-name
- Open a pull request for review.
- Expand the dataset to include more institutions.
- Add more advanced filtering options (e.g., by region, institution type).
- Improve the chatbot's AI capabilities to handle complex queries.
- Integrate user authentication for a personalized experience.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for exploring our Interactive Mapping Application! If you have any feedback or suggestions, feel free to open an issue or reach out to us.