Skip to content

About

๐Ÿ‡ฎ๐Ÿ‡ณ TravelSathi: Digital Public Infrastructure for Smart Tourism (SIH Finale) โ€” multilingual travel twin, anti-overtourism & search graph.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

81 Commits

Folders and files

Repository files navigation

๐Ÿ‡ฎ๐Ÿ‡ณ TravelSathi โ€” India's Digital Public Infrastructure for Smart Tourism

Unified Multilingual Travel Twin, Anti-Overtourism Gatekeeper, Verified Host Hub & Government Investment Intelligence

SIH Grand Finale FastAPI React Vite Machine Learning Database Gov Intelligence


๐ŸŒŸ The Vision: Why TravelSathi?

India is home to an extraordinary tapestry of culture, heritage, and natural beauty โ€” over 12,600 verified destinations spanning 36 States and Union Territories.

Yet today, nearly 80% of tourism footfall concentrates in just a handful of overcrowded epicenters โ€” causing severe traffic gridlocks in Manali, ecological strain in Shimla, and overwhelming lines in Varanasi. At the same time, thousands of stunning heritage sites, tribal homestays, and pristine rural circuits remain under-visited, with local hosts losing up to 25% of their hard-earned income to commercial middlemen.

TravelSathi was built to change this narrative.

As a Digital Public Infrastructure (DPI) platform, TravelSathi protects India's high-stress cultural hotspots through real-time anti-overtourism telemetry, while giving travelers unforgettable, culturally rich journeys, empowering local communities with zero-commission homestays, and arming government tourism departments with AI-driven investment intelligence across 508 districts.


๐Ÿš€ Get Started in 60 Seconds

We made testing and running the entire ecosystem effortless.

The 1-Click Launch (Windows)

Simply run the interactive master runner in your project root:

.\run.bat

run.bat automatically:

  1. Detects your Python and Node.js environments.
  2. Checks and verifies all backend dependencies and npm packages.
  3. Ensures all database tables and 12,601 pre-scored destinations are ready.
  4. Starts both the FastAPI backend (:8000) and Vite frontend (:5173) in clean background processes.
  5. Launches your default web browser to the app and presents a friendly 12-point diagnostic toolbox (including Government Tourism Intelligence with Hourly Token).

Manual Setup (Step-by-Step)

If you prefer starting services individually:

1. Backend (FastAPI + Async SQLite)

cd backend
python -m pip install -r requirements.txt
python scripts/run_create_tables.py
python -m uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload
  • Interactive Swagger Documentation: http://127.0.0.1:8000/docs

2. Frontend (React 19 + Vite + TailwindCSS + Leaflet)

cd frontend
npm install
npm run dev
  • Web Application: http://localhost:5173

๐Ÿ›๏ธ The 5 Dedicated Portals

TravelSathi isolates capabilities into five distinct, role-governed portals tailored for each stakeholder in India's tourism ecosystem:

                                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                                    โ”‚       TRAVELSATHI        โ”‚
                                    โ”‚  National DPI Ecosystem  โ”‚
                                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                 โ”‚
     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
     โ–ผ                โ–ผ                             โ–ผ                โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ TOURIST  โ”‚  โ”‚   HOST   โ”‚            โ”‚ DMO COMMAND  โ”‚  โ”‚  ADMIN   โ”‚
โ”‚ Travel   โ”‚  โ”‚ Zero-Cut โ”‚            โ”‚  Overtourism โ”‚  โ”‚ Catalog  โ”‚
โ”‚ Twin     โ”‚  โ”‚ Stays    โ”‚            โ”‚  & Gov Intel โ”‚  โ”‚ & Audit  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Portal Route Who it's for Key Highlights
Tourist Command Center / or /tourist Indian & International Travelers Multilingual Travel Twin, real-time crowd heatmap, seasonal weather matching, 130+ emergency essentials + nationwide 24/7 OSM emergency locator, client-side encrypted group trips, split-UPI checkouts.
Verified Host Hub /host Homestay Hosts & Eco-Hotels Real-time booking requests, DigiLocker eKYC, AI Tariff Co-Pilot (5-fold test Rยฒ = 0.9956), 0% commission, guest messaging.
DMO & Government Command Center /dmo & /dmo/investment State Tourism Boards & Ministry Authorities Carrying capacity telemetry, Eco-Permit Gatekeeper, 508-district investment prioritization, Festival Crowd Forecaster (5-fold test Rยฒ = 0.9685), Scenario Simulator, AI Advisor.
National Admin Center /admin System Administrators 12,601 destination catalog, homestay verification queue, tamper-evident SHA-256 hash-chained security audit logs, ML model telemetry.

๐Ÿ“– Panel-specific documentation is available in the docs/ directory:


๐Ÿ’ก What Makes TravelSathi Unique?

1. ๐ŸŽฏ Destination Potential Score Engine (12,601 Destinations)

Implemented under the Swadesh Darshan 2.0 framework, this model scores every single destination in India from 0 to 100 based on six rigorous empirical factors:

  • Attraction Strength (30%): Area agglomeration of heritage monuments and uniqueness bonus.
  • Tourism Demand (20%): Live search interest and verified interaction volumes.
  • Cultural Significance (15%): Mapped against official heritage registries:
    • UNESCO World Heritage: 1.0
    • ASI Protected Monument: 0.7 (144 verified ASI sites)
    • State Recognized: 0.4
    • Unlisted / Regional: 0.1
  • Growth Opportunity (15%): 30-day interaction acceleration rate.
  • Transit Accessibility (10%): Proximity to airports, railway junctions, and national highways.
  • Seasonality Evenness (10%): Gini coefficient over 12-month footfall curves.

Explore it live in the DMO portal: http://localhost:5173/dmo/potential or via GET /api/dmo/investment-priorities.


2. ๐Ÿ›๏ธ Government Tourism Investment Intelligence (508 Districts) โ€” Calibrated Production Mode

An enterprise-grade decision-support module for the Ministry of Tourism and state DMO officers:

  • Calibrated 90.0% Data Confidence: Grounded across official datasets (ASI national registries, Ministry of Tourism footfalls, AAI aviation telemetry, and GI registry).
  • Infrastructure Readiness Index (0โ€“100): Evaluates multimodal transit accessibility, accommodation capacity, activity infrastructure, and operational seasonality stability.
  • Readiness Gap Analysis: Computes Potential - Readiness to pinpoint under-invested high-opportunity districts where public capex yields maximum catalytic impact.
  • Dedicated Workspaces Architecture:
    • ๐Ÿ“Š Strategic Overview & Readiness Matrix (?tab=overview): 4-quadrant readiness vs potential matrix and 7-layer national geography map.
    • ๐Ÿ“‹ 508 Districts Rankings (?tab=rankings): Filterable rankings table with Infrastructure Readiness column and CSV export.
    • โšก Scenario Simulator & AI Advisor (?tab=simulator): Budget interventions (โ‚น5 Cr โ€“ โ‚น100 Cr) with projected uplift and grounded AI policy advisor.
    • โš–๏ธ Multi-District Strategic Comparison (?tab=compare): Side-by-side metric comparison, trade-off radar/meters, and AI synthesis.
  • Hourly Token Integration: All responses, exports, and printable reports include hourly_token (tok_hourly_YYYYMMDD_HH00) for cache coherence and audit traceability.
  • 11 REST API Endpoints: Under /api/government/tourism/ (including POST /compare) with RBAC enforcement for government, dmo, admin, analyst roles.

Access: http://localhost:5173/gov/tourism-intelligence or API docs at http://127.0.0.1:8000/docs


3. ๐Ÿšฆ Anti-Overtourism Gatekeeper & Sustainable Green Circuits

Instead of simply telling travelers "don't go there," TravelSathi actively diverts demand to curated green alternatives:

  • Manali breached threshold? โž” Diverts to Tirthan Valley & Jibhi (-65% crowd).
  • Shimla saturated? โž” Diverts to Chail & Narkanda (-70% crowd).
  • Jaipur peak hours? โž” Diverts to Bundi & Shekhawati (-70% crowd).
  • Every diversion issues an Eco-Token Carbon Abatement badge, rewarding tourists for taking the sustainable path.

4. ๐ŸŽช Festival Footfall Forecaster & Staffing Co-Pilot

India's cultural festivals attract millions in short spans. Our Gradient Boosting forecaster (Rยฒ = 0.980) predicts 14-day arrival curves for events like Kumbh Mela, Diwali, Durga Puja, and Hornbill:

  • Autonomous Staffing Recommendations: Automatically calculates required police personnel, emergency medical stations, and sanitation workers based on projected crowd index.
  • Administrative Overrides with Audit Trails: DMO officers can adjust staffing numbers, with every modification cryptographically signed and stored in the database.

5. ๐Ÿฅ 24/7 Emergency Healthcare & Travel Essentials Grid

A nationwide emergency mesh featuring 130+ verified hospital & clinic locations grounded in database plus 24/7 dynamic OpenStreetMap emergency locator spanning all 36 States & UTs:

  • Level-1 Trauma Centers & Government Hospitals: Direct 108 / 112 hotlines and emergency ambulance dispatch contacts.
  • Verified Stays: Tribal PM-JUGA homestays, eco-resorts, and budget guest houses.
  • Local Dining: Verified food hygiene ratings and authentic regional cuisines.
  • Offline SOS & Authenticated Group Travel: Live location check-ins and emergency beacons that work even in remote Himalayan valleys or dense forests.

6. ๐ŸŒ Deep Multilingual Localization (7 Indic Languages)

TravelSathi speaks the language of India:

  • Supported: English, Hindi (เคนเคฟเคจเฅเคฆเฅ€), Marathi (เคฎเคฐเคพเค เฅ€), Bengali (เฆฌเฆพเฆ‚เฆฒเฆพ), Tamil (เฎคเฎฎเฎฟเฎดเฏ), Telugu (เฐคเฑ†เฐฒเฑเฐ—เฑ), Gujarati (เช—เซเชœเชฐเชพเชคเซ€).
  • Full localization across cultural dossier guides, safety notices, booking receipts, and navigation headers.

๐Ÿค– Machine Learning Intelligence Suite

TravelSathi runs 7 specialized models locally with ultra-fast inference and verified held-out performance:

# Model Purpose Architecture Held-Out Performance
1 Destination Potential Engine Rank tourism investment priority Multi-Factor Empirical Composite (6 Factors) 100% of 12,601 POIs Scored (Weights = 1.0)
2 Dynamic Tariff Co-Pilot Fair pricing for local homestays GradientBoostingRegressor 5-Fold Test Rยฒ = 0.9956 ยฑ 0.0007, MAE: โ‚น178.83
3 Festival Footfall Forecaster Crowd surge & staffing predictions GradientBoostingRegressor 5-Fold Test Rยฒ = 0.9685 ยฑ 0.0063, MAE: 80.03
4 Tourist Recommendation Ranker Personal feed & destination click rank GradientBoostingClassifier AUC-ROC: 0.7164, Precision@6: 62.32%, Acc: 68.86%
5 Overtourism Risk Classifier Live carrying capacity detection Dynamic Carrying Capacity Ratio Real-time trigger at โ‰ฅ 70%
6 Review Authenticity Classifier Filter fake reviews & verify bookings LogisticRegression on linguistic features Precision: 95.5%, Accuracy: 94.2%
7 Gov Tourism Investment Intel 508-district prioritization, readiness index & scenario simulation Multi-Stage Composite + Rule Engine 508/508 districts scored (90.0% Calibrated Confidence, Readiness: 51.4/100)

โฑ๏ธ Dynamic Hourly Token Standard

In compliance with our real-time Digital Public Infrastructure mandate, all API responses include an hourly synchronization token:

Token Format: tok_hourly_YYYYMMDD_HH00

  • Example: tok_hourly_20260916_0400
  • Automatically generated via get_current_hourly_token() in backend routes.
  • Guarantees that tourist portals, DMO dashboards, government investment intelligence, and external government aggregators operate on the exact same hourly telemetry window.
  • The Government Tourism Intelligence module embeds this token in every response, CSV export, and printable report for audit traceability.

๐Ÿงช Comprehensive Verification & Test Suite

Run unit and integration tests at any time:

# Test Destination Potential Score algorithm (Bounds, weights, missing data fallbacks)
pytest backend/tests/test_potential_score.py -v

# Test ML models (Dynamic Pricing, Recommendation, Authenticity)
pytest backend/tests/test_all_3_ml_models.py -v

# Test Cultural Events dataset & 7-language translations
pytest backend/tests/test_cultural_events.py -v

# Test Government Tourism Intelligence & Crowd Index Suites
pytest backend/tests/test_govt_suite.py backend/tests/test_crowd_index.py -v

# Run the complete 26-check Master System Audit
python scripts/master_audit_runner.py

๐Ÿ“ Repository Structure

SIH/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ api/             # FastAPI REST endpoints (dmo, destinations, safety, gov tourism, etc.)
โ”‚   โ”‚   โ”œโ”€โ”€ database/        # SQLAlchemy models (12,601 destinations, transport, gov intelligence)
โ”‚   โ”‚   โ”œโ”€โ”€ services/        # ML models (potential score, pricing, routing, gov intelligence service)
โ”‚   โ”‚   โ”œโ”€โ”€ schemas/         # Pydantic validation schemas (tourist, gov, dmo)
โ”‚   โ”‚   โ””โ”€โ”€ core/            # Auth, config, rate limiting, RBAC dependencies
โ”‚   โ”œโ”€โ”€ data/                # Real government datasets (Visits 2020-2024, ASI footfalls)
โ”‚   โ””โ”€โ”€ tests/               # Automated pytest suites (potential, ML, events, gov intelligence)
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/      # Reusable UI widgets (Timeline, SmartMap, Modal)
โ”‚   โ”‚   โ”œโ”€โ”€ views/           # Full portal pages
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ gov/         # Government Tourism Intelligence & Gov Dashboard
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ host/        # Host Hub Dashboard
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ tourist/     # Tourist portal views (Dashboard, Trips, Groups, etc.)
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ admin/       # Admin Dashboard & DMO Admin
โ”‚   โ”‚   โ””โ”€โ”€ locales/         # 7 Indic language translation files (hi, bn, ta, te, etc.)
โ”œโ”€โ”€ ml/
โ”‚   โ”œโ”€โ”€ config/              # config.yaml (centralized weights, thresholds)
โ”‚   โ”œโ”€โ”€ data/government_sources/  # 8 source CSVs (508 districts) + investment data template
โ”‚   โ”œโ”€โ”€ features/            # Entity resolution & feature pipeline
โ”‚   โ”œโ”€โ”€ models/              # Tourism potential, opportunity, infrastructure gap, priority engine
โ”‚   โ”œโ”€โ”€ explainability/      # Factor contribution breakdown & narrative briefing
โ”‚   โ”œโ”€โ”€ inference/           # Master orchestrator (orchestrator_gov.py)
โ”‚   โ””โ”€โ”€ schemas/             # JSON contract schema (Section 42)
โ”œโ”€โ”€ data/                    # Master destination datasets (12,601 POIs across 36 States/UTs)
โ”œโ”€โ”€ docs/                    # Panel-specific README documentation
โ”‚   โ”œโ”€โ”€ README_TOURIST.md
โ”‚   โ”œโ”€โ”€ README_HOST.md
โ”‚   โ”œโ”€โ”€ README_DMO.md
โ”‚   โ”œโ”€โ”€ README_GOV_INTELLIGENCE.md
โ”‚   โ””โ”€โ”€ README_ADMIN.md
โ”œโ”€โ”€ scripts/                 # Ingestion, audit, coordinate correction, and test scripts
โ”œโ”€โ”€ run.bat                  # Interactive one-click launch suite and 12-point diagnostic toolbox
โ””โ”€โ”€ README.md                # Project documentation and architectural overview (this file)

๐Ÿ”— Key URLs (After Running run.bat)

Service URL
Main Web Application http://localhost:5173
DMO Command Center http://localhost:5173/dmo
Gov Tourism Intelligence http://localhost:5173/gov/tourism-intelligence
Admin Panel http://localhost:5173/admin
Swagger API Docs http://127.0.0.1:8000/docs
ReDoc API Docs http://127.0.0.1:8000/redoc

๐Ÿค Developed for Smart India Hackathon (SIH)

Crafted with heart, rigorous engineering, and deep respect for India's incredible heritage and hospitality.

About

๐Ÿ‡ฎ๐Ÿ‡ณ TravelSathi: Digital Public Infrastructure for Smart Tourism (SIH Finale) โ€” multilingual travel twin, anti-overtourism & search graph.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages