Skip to content

7pk5/LLM_maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 GMaps Intelligence Assistant

A free, AI-powered location intelligence assistant that combines interactive maps with conversational AI to provide intelligent responses for location-based queries.

✨ Features

  • 🗺️ 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

🆓 Free Services Used

  1. Groq API - Free LLM inference

  2. OpenStreetMap + Leaflet - Completely free mapping

    • No API key required
    • Global coverage
    • Open source
  3. Nominatim - Free geocoding service

    • OpenStreetMap's search service
    • No API key required
    • Rate limited but generous for personal use

🚀 Quick Start

  1. Clone or download this project
  2. Open index.html in a web browser
  3. Get a free Groq API key:
  4. Enter your API key when prompted
  5. Start asking questions!

💡 Example Queries

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"

🛠️ Technical Details

Architecture

  • Frontend Only: Pure HTML, CSS, and JavaScript
  • No Backend Required: All APIs called directly from browser
  • Real-time: Instant map updates and AI responses

APIs Integration

  • Groq API: For intelligent, contextual responses
  • Nominatim: For location search and geocoding
  • OpenStreetMap: For map tiles and geographic data

Key Components

  • GMapsIntelligenceAssistant: Main application class
  • Location extraction and mapping
  • AI-powered response generation
  • Interactive chat interface
  • Responsive map controls

🎨 UI Features

  • 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

🔧 Configuration

Groq API Setup

  1. Visit console.groq.com
  2. Create a free account
  3. Navigate to API Keys section
  4. Create a new API key
  5. Copy and paste into the application

Rate Limits (Free Tier)

  • Groq: 14,400 requests/day, 30 requests/minute
  • Nominatim: 1 request/second (please be respectful)

📝 Usage Tips

  1. Be Specific: Include city, state, or country for better results
  2. Natural Language: Ask questions as you would to a local expert
  3. Multiple Locations: The app can handle and display multiple results
  4. Your Location: Allow location access for personalized results
  5. Map Controls: Use zoom and pan to explore areas

🗂️ File Structure

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

🌐 Browser Compatibility

  • Chrome/Edge: Full support
  • Firefox: Full support
  • Safari: Full support
  • Mobile Browsers: Responsive design

🔒 Privacy & Security

  • 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

🆘 Troubleshooting

Common Issues

  1. Map not loading:

    • Check internet connection
    • Ensure no ad blockers blocking tiles
  2. AI not responding:

    • Verify Groq API key is correct
    • Check API rate limits
    • Try refreshing the page
  3. Location not found:

    • Be more specific with place names
    • Include city/country in query
    • Try alternative spellings
  4. Geolocation not working:

    • Enable browser location permissions
    • Use HTTPS (required for geolocation)
    • Try manual location search

Error Messages

  • API Key Issues: Red error messages indicate authentication problems
  • Rate Limits: Temporary delays when limits are reached
  • Network Errors: Check internet connection

🚀 Deployment

Local Development

  • Simply open index.html in any modern web browser
  • No build process or server required

Web Hosting

  • Upload all files to any web hosting service
  • Works with GitHub Pages, Netlify, Vercel, etc.
  • Ensure HTTPS for geolocation features

HTTPS Requirement

  • Geolocation API requires HTTPS in production
  • Use services like GitHub Pages for free HTTPS hosting

📈 Future Enhancements

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

🤝 Contributing

This is an open project! Feel free to:

  • Report bugs or issues
  • Suggest new features
  • Submit pull requests
  • Improve documentation

📄 License

Free to use and modify. Built with open-source technologies.

🙏 Acknowledgments

  • 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!

About

https://7pk5.github.io/LLM_maps/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors