A location-aware AI assistant that provides contextual information about geographic locations through an interactive map interface.
- Interactive map interface with location awareness
- Real-time chat with location context
- Reverse geocoding for human-readable location descriptions
- Responsive design with Tailwind CSS
- Edge runtime for fast API responses
- Next.js 14
- TypeScript
- Tailwind CSS
- Leaflet.js for maps
- Google Gemini AI
- OpenStreetMap Nominatim for geocoding
-
Clone the repository:
git clone https://github.com/lpolish/earthai2.git cd earthai2
-
Install dependencies:
pnpm install
-
Create a
.env.local
file with your API keys:GOOGLE_API_KEY=your_gemini_api_key
-
Run the development server:
pnpm dev
-
Open http://localhost:3000 in your browser.
- Navigate the map to your area of interest
- Use the chat interface to ask questions about the current location
- The AI will provide context-aware responses based on your map view
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenStreetMap for map data
- Google for the Gemini AI API
- The Next.js team for the amazing framework