Local Explorer is an innovative web application that combines geolocation, real-time weather data, and personalized activity suggestions to help users discover exciting local experiences.
- Real-time geolocation tracking
- Current weather information
- Personalized activity suggestions
- Interactive Google Maps integration
- Dynamic route planning
- AI-powered activity recommendations
- Frontend: HTML, JavaScript, Google Maps API
- Backend: Django, Python
- AI Integration: OpenAI GPT-3.5
- APIs:
- OpenWeatherMap
- Google Maps Places
- Google Directions (If the directions do not show up, please ensure that the Directions API is enabled in your Google Cloud Console and that your API key is correctly configured.)
- Python 3.10+
- Django
- OpenAI API Key
- Google Maps API Key
- OpenWeatherMap API Key
git clone https://github.com/yourusername/local-explorer.git
cd LocalExplorer
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r backend/requirements.txt
Create a .env
file in the backend
directory with:
DJANGO_SECRET_KEY=your_django_secret_key
OPENAI_API_KEY=your_openai_api_key
WEATHER_API_KEY=your_openweathermap_api_key
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
cd backend
python manage.py migrate
python manage.py runserver
- Open the web application
- Open http://127.0.0.1:8000/location in your web browser
- Click "Get Weather" button
- Allow location access
- View weather and activity suggestions
- Click on activities to see map details and directions
local-explorer/
├── LICENSE
├── README.md
└── backend/
├── local_explorer/ # Django project settings
├── manage.py
├── requirements.txt
└── weather/ # Main application directory
├── views.py # Backend logic
├── urls.py # URL routing
└── templates/ # HTML templates
Ensure all API keys are kept confidential and not pushed to version control.
- Fork the repository
- Create your feature branch
- Commit changes
- Push to the branch
- Create a Pull Request
- Verify API keys
- Check internet connectivity
- Ensure all dependencies are installed
For issues, please open a GitHub issue