A free, AI-powered location intelligence assistant that combines interactive maps with conversational AI to provide intelligent responses for location-based queries.
- 🗺️ Interactive Maps: Free OpenStreetMap integration with Leaflet
- 🤖 AI Assistant: Powered by free Groq API with Llama models
- 📍 Location Search: Free geocoding with Nominatim
- 💬 Natural Language: Chat interface for location queries
- 📱 Responsive Design: Works on desktop and mobile
- 🎯 Smart Markers: Visual location markers with popups
- 📍 User Location: Geolocation support
-
Groq API - Free LLM inference
- Up to 14,400 requests/day on free tier
- Fast Llama 3.1 models
- Get free API key: console.groq.com/keys
-
OpenStreetMap + Leaflet - Completely free mapping
- No API key required
- Global coverage
- Open source
-
Nominatim - Free geocoding service
- OpenStreetMap's search service
- No API key required
- Rate limited but generous for personal use
- Clone or download this project
- Open
index.htmlin a web browser - Get a free Groq API key:
- Visit console.groq.com
- Sign up for free
- Create an API key
- Enter your API key when prompted
- Start asking questions!
Try these sample queries:
- "Find coffee shops near Central Park, New York"
- "What are the best attractions in Paris?"
- "Show me restaurants in downtown San Francisco"
- "Find hotels near the Eiffel Tower"
- "Where can I get gas in Los Angeles?"
- "Show me parks in London"
- Frontend Only: Pure HTML, CSS, and JavaScript
- No Backend Required: All APIs called directly from browser
- Real-time: Instant map updates and AI responses
- Groq API: For intelligent, contextual responses
- Nominatim: For location search and geocoding
- OpenStreetMap: For map tiles and geographic data
GMapsIntelligenceAssistant: Main application class- Location extraction and mapping
- AI-powered response generation
- Interactive chat interface
- Responsive map controls
- Modern Design: Gradient backgrounds and smooth animations
- Chat Interface: WhatsApp-style messaging
- Interactive Map: Zoom, pan, and marker interactions
- Loading States: Visual feedback during API calls
- Mobile Responsive: Optimized for all screen sizes
- Dark/Light Theming: Automatic contrast adjustments
- Visit console.groq.com
- Create a free account
- Navigate to API Keys section
- Create a new API key
- Copy and paste into the application
- Groq: 14,400 requests/day, 30 requests/minute
- Nominatim: 1 request/second (please be respectful)
- Be Specific: Include city, state, or country for better results
- Natural Language: Ask questions as you would to a local expert
- Multiple Locations: The app can handle and display multiple results
- Your Location: Allow location access for personalized results
- Map Controls: Use zoom and pan to explore areas
LLM_gmaps/
├── index.html # Main HTML file with UI structure
├── styles.css # CSS styling and responsive design
├── script.js # JavaScript application logic
└── README.md # This documentation file
- Chrome/Edge: Full support
- Firefox: Full support
- Safari: Full support
- Mobile Browsers: Responsive design
- API Keys: Stored locally in browser only
- Location Data: Not transmitted to third parties
- No Tracking: No analytics or user tracking
- Open Source: Transparent code
-
Map not loading:
- Check internet connection
- Ensure no ad blockers blocking tiles
-
AI not responding:
- Verify Groq API key is correct
- Check API rate limits
- Try refreshing the page
-
Location not found:
- Be more specific with place names
- Include city/country in query
- Try alternative spellings
-
Geolocation not working:
- Enable browser location permissions
- Use HTTPS (required for geolocation)
- Try manual location search
- API Key Issues: Red error messages indicate authentication problems
- Rate Limits: Temporary delays when limits are reached
- Network Errors: Check internet connection
- Simply open
index.htmlin any modern web browser - No build process or server required
- Upload all files to any web hosting service
- Works with GitHub Pages, Netlify, Vercel, etc.
- Ensure HTTPS for geolocation features
- Geolocation API requires HTTPS in production
- Use services like GitHub Pages for free HTTPS hosting
Potential improvements (all using free services):
- Weather Integration: OpenWeatherMap free tier
- Traffic Data: GTFS feeds for transit information
- Reviews: OpenStreetMap notes and comments
- Photos: Wikimedia Commons integration
- Routing: OpenRouteService for directions
- Offline Support: Service worker caching
This is an open project! Feel free to:
- Report bugs or issues
- Suggest new features
- Submit pull requests
- Improve documentation
Free to use and modify. Built with open-source technologies.
- OpenStreetMap: For free, open geographic data
- Leaflet: For the excellent mapping library
- Groq: For providing free AI inference
- Nominatim: For free geocoding services
Made with ❤️ using only free services and APIs
No subscriptions, no hidden costs, no vendor lock-in!