Smart Tourism Platform
Relevant source files
The following files were used as context for generating this wiki page:
The Smart Tourism Platform is a core operational module within the RDM Digital / TAMV Online ecosystem, designed to provide a digital twin and interactive experience for Real del Monte, Hidalgo. It integrates territorial cartography, cultural heritage narratives, and commercial cataloging to facilitate a "sovereign fortress city" model where tourism services are managed through a unified digital interface.
The platform serves as a bridge between the physical territory and digital governance, utilizing Supabase Edge Functions for real-time geolocation and AI-driven assistance. It focuses on four primary operational areas: destination discovery, historical memory preservation, interactive route exploration, and gamified visitor engagement.
Sources: README.md:4-15, src/components/tourism/tourism-platform.tsx:32-60, src/pages/Turismo.tsx:10-14
System Architecture and Components
The tourism platform is structured as a single-page application (SPA) module within the broader React + Vite stack. It leverages a domain-driven design where tourism data is categorized into Points of Interest (POIs) and thematic federations.
Core Modules
The platform is divided into four main interactive pages:
- Home: Operational dashboard with a toolbar, live destination status, and quick access to the map and commerce.
- Memoria (History): Connects mining heritage, cultural agenda, and local art.
- Explora (Routes): Provides interactive maps, commercial catalogs, and pre-defined tour plans.
- Juego (Legends): Incorporates myths, legends, and gamification mechanics (achievements/points).
Sources: src/components/tourism/tourism-platform.tsx:32-60, src/App.tsx:43-45
Data Flow for Tourism POIs
The following diagram illustrates how tourism data flows from the Supabase backend to the interactive UI components.
The platform uses a centralized data structure defined in tourism-data.ts to manage static and dynamic content.
Sources: src/lib/tourism-data.ts:1-70, supabase/migrations/20260512080845_110fe96e-4027-403f-98c8-f6d495c1bf4c.sql:47-84
Features and Functionality
1. Interactive Exploration and Filtering
The TurismoPage provides a filtering system based on categories such as History, Culture, Gastronomy, Nature, and Business. It utilizes React state to dynamically update the view based on the user's selection.
| Category | Description |
|---|---|
| Historia | Mining sites, archives, and historical monuments. |
| Cultura | Rituals, temples, and community expressions. |
| Gastronomia | Local food corridors, specifically focused on "Pastes". |
| Naturaleza | Viewpoints (Miradores) and outdoor routes. |
| Negocios | Commercial catalogs and artisan markets. |
Sources: src/lib/tourism-data.ts:1-5, src/pages/Turismo.tsx:10-25
2. Isabella AI Contextual Assistance
The platform includes a specialized multi-agent orchestrator named Isabella. In the tourism context, it acts as a real-time concierge.
The assistant is implemented via a dedicated IsabellaBox component that communicates with an external Edge Function endpoint.
Sources: src/pages/Turismo.tsx:31-42, src/App.tsx:46-47
3. Route Planning and Gamification
The system defines structured visitor experiences through routePlans and quests.
- Route Essential Minera: 3-hour duration covering Mina de Acosta and the English Cemetery.
- Gamification (Insignias): Visitors can earn points (e.g., +120 pts for "Explorador Minero") by completing specific cultural milestones.
Sources: src/components/tourism/tourism-platform.tsx:103-120, src/components/tourism/tourism-platform.tsx:143-160
Data Models and Schema
Tourism POI Schema
The backend persistence for tourism sites is managed in the public.pois table, which links physical coordinates to thematic federations.
| Field | Type | Description |
|---|---|---|
name | text | Name of the tourist site (e.g., 'Mina de Acosta'). |
category | text | Functional classification (mineria, templo, ritual, etc.). |
lat/lng | double | Geolocation coordinates for the digital twin mapping. |
federation_id | text | Link to 'cultural', 'economica', or 'gubernamental' federations. |
significance | text | Historical or social importance of the site. |
Sources: supabase/migrations/20260512080845_110fe96e-4027-403f-98c8-f6d495c1bf4c.sql:47-65, src/lib/types.ts:13-24
Implementation Snippet: POI Filtering
// src/pages/Turismo.tsx:11-13
export default function TurismoPage() {
const [category, setCategory] = useState<TourismCategory | "">("")
const spots = category ? tourismSpots.filter((spot) => spot.category === category) : tourismSpots
// ...
}
Sources: src/pages/Turismo.tsx:11-13
Summary
The Smart Tourism Platform within RDM Digital transforms traditional tourism into an operational "Smart City" service. By combining local knowledge (Isabella AI), physical data (POI coordinates), and economic structures (Merchant Catalogs), it provides a sovereign digital infrastructure that serves both the visitor and the local administration. This module is currently estimated at approximately 72% production readiness, with key strengths in its functional frontend and integrated Supabase Edge logic.
Sources: README.md:120-135, src/components/tourism/tourism-platform.tsx:162-185