Skip to content

Smart Tourist Safety System uses AI, Blockchain, Geo-Fencing & IoT to protect tourists. It provides digital IDs, real-time tracking, anomaly detection, panic alerts, and multilingual support for safe, secure, and responsible travel in high-risk and remote areas.

Notifications You must be signed in to change notification settings

DurPunam/smarttourist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Smart Tourist Safety Platform

A comprehensive real-time tourist safety monitoring and management system with AI-powered assistance, GPS tracking, emergency response, and IoT integration.

Status Version License

👥 Contributors

See CONTRIBUTORS.md for detailed contributions.


🚀 Quick Start

git clone https://github.com/DurPunam/smarttourist.git
cd smarttourist
npm install
cd backend && npm install && cd ..
cp backend/.env.template backend/.env
# Add your API keys to backend/.env
npm run dev

Access: http://localhost:3000


📱 Mobile Access

Connect your mobile to same WiFi and access: http://YOUR_IP:3000


🔑 Login Credentials


🌟 Features

Core Features

  • Authentication - JWT-based with auto-refresh
  • Real-time GPS Tracking - Live location monitoring
  • AI Chatbot - Google Gemini integration
  • Weather Integration - OpenWeather API with safety alerts
  • Emergency SOS - Hold-to-activate panic button
  • Police Dashboard - Alert monitoring and response
  • Admin Dashboard - System management
  • IoT Monitoring - Device health and status
  • Multi-language - 10 Indian languages supported

Map Features

  • Interactive Leaflet.js maps
  • Dynamic nearby places (5-20km radius)
  • Heatmap visualization
  • Geofencing (500m, 1km zones)
  • Real-time updates every 30 seconds
  • Filter by type (tourists, police, hospitals)

Tourist App

  • Real-time GPS tracking
  • Emergency SOS button (hold 3 seconds)
  • Safety score display
  • Emergency contacts with quick dial
  • Nearby alerts and warnings
  • Health status monitoring
  • Weather with travel safety

🛠️ Tech Stack

Frontend:

  • React 18, TypeScript, Vite
  • Tailwind CSS, Radix UI, Shadcn/ui
  • Leaflet.js, Framer Motion
  • React Router v6, Axios

Backend:

  • Node.js, Express.js
  • SQLite (dev), Sequelize ORM
  • JWT, bcrypt, Socket.io
  • helmet, cors, express-validator

External APIs:

  • Google Gemini AI
  • OpenWeather API
  • OpenStreetMap Overpass API
  • Google Maps API

📚 Documentation


🔧 Configuration

Create backend/.env with:

# AI Chatbot
GEMINI_API_KEY=your_gemini_api_key

# Weather
OPENWEATHER_API_KEY=your_openweather_key

# Google Maps (optional)
GOOGLE_MAPS_API_KEY=your_google_maps_key

Get API Keys:


📊 API Endpoints

Authentication

  • POST /api/auth/register - Register
  • POST /api/auth/login - Login
  • POST /api/auth/refresh - Refresh token

Weather

  • GET /api/weather/current?lat={lat}&lon={lon} - Current weather
  • GET /api/weather/forecast?lat={lat}&lon={lon} - Forecast
  • GET /api/weather/safety?lat={lat}&lon={lon} - Safety check

Tourists

  • GET /api/tourists - Get all tourists
  • POST /api/tourists/me/location - Update location
  • POST /api/tourists/me/emergency - Send SOS

🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open Pull Request

📝 License

MIT License - see LICENSE file for details


📞 Support


🙏 Acknowledgments

  • OpenStreetMap for map data
  • OpenWeather for weather API
  • Google for Gemini AI
  • Leaflet.js for mapping
  • Shadcn/ui for UI components

Made with ❤️ by SAICHARAN1189

Repository: https://github.com/DurPunam/smarttourist

About

Smart Tourist Safety System uses AI, Blockchain, Geo-Fencing & IoT to protect tourists. It provides digital IDs, real-time tracking, anomaly detection, panic alerts, and multilingual support for safe, secure, and responsible travel in high-risk and remote areas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •