HMHS Map is a high-performance, real-time GPS navigation and global mapping system optimized for worldwide search and street-level accuracy across Pakistan. Hosted on the custom edge domain https://hmhsmap.edgeone.dev/.
You can share the application with clients, drivers, and users using the official read-only live link. Anyone with this link can use the full live map, search locations, get voice turn-by-turn directions, and test routes, but nobody can edit, modify code, delete files, or alter settings.
| Access Type | Public URL | Permissions |
|---|---|---|
| 🌐 Canonical Edge Domain | https://hmhsmap.edgeone.dev/ | Read-Only / Live Navigation |
| 🛡️ Standalone Shared App Preview | https://ais-pre-dhf4vzkhgkboi775en5ol5-1019729835090.asia-southeast1.run.app | Read-Only / Isolated Container |
| 🗺️ XML Sitemap Feed | https://hmhsmap.edgeone.dev/sitemap.xml |
Public Search Crawlers |
| 🤖 Robots Directives | https://hmhsmap.edgeone.dev/robots.txt |
Indexing Directives |
- Step 1 — Copy Link:
- Open or copy either
https://hmhsmap.edgeone.dev/orhttps://ais-pre-dhf4vzkhgkboi775en5ol5-1019729835090.asia-southeast1.run.app.
- Open or copy either
- Step 2 — Distribute to Users:
- Send the link via WhatsApp, Email, SMS, QR Code, or embed on your website.
- Step 3 — Open on Any Device:
- Works immediately in Chrome, Safari, Firefox, or Edge on iOS, Android, macOS, and Windows.
- No app download or sign-in is required.
- Step 4 — Use Real-Time Navigation:
- Tap the GPS "Locate Me" button to lock onto physical hardware GPS coordinates.
- Search any city, landmark, or gully (e.g., Karachi, Lahore, Makkah, London, Times Square).
- Click "Directions" to calculate the real road network route and tap "Start" or "Auto-Drive" for turn-by-turn voice guidance.
- Step 5 — Total Safety & Integrity:
- The code editor, terminal, secrets, and repository files are completely disabled and inaccessible from this URL.
The application is fully bound to the custom domain hmhsmap.edgeone.dev.
- Primary Web URL: https://hmhsmap.edgeone.dev/
- Sitemap Feed: https://hmhsmap.edgeone.dev/sitemap.xml
- Robots Directives: https://hmhsmap.edgeone.dev/robots.txt
- Domain Status Endpoint:
GET /api/domain-info - Edge Routing Configuration:
edgeone.json
- Search and jump instantly to metropolises worldwide (Makkah, Madinah, London, New York, Tokyo, Dubai, Paris, Toronto, etc.) and global landmarks (The Holy Kaaba, Burj Khalifa, Eiffel Tower, Times Square, etc.).
- Deep street-level accuracy for Pakistan cities (Karachi, Lahore, Islamabad, Rawalpindi, Peshawar, Quetta, Multan, Faisalabad, and all motorways).
- Built on a hardware-accelerated Canvas renderer (
preferCanvas: true) with adaptive polyline smoothing (smoothFactor: 1.0). - Stutter-free panning, zooming (1x planetary view to 21x street/gully view), and multi-route rendering.
- Concurrent mirror queries (
Promise.any) across high-speed OpenStreetMap / OSRM endpoints. - Fast in-memory server cache and client cache for <300ms route calculation and instant corridor switching.
- AI-assisted route evaluation via Gemini 3.7 Flash.
- Prefers lush greenery, divided highways, flyovers, and bypasses for maximum driver comfort and scenic views.
- Web Speech API integration for real-time voice guidance instructions.
- Auto-Drive Simulation Engine with speed multipliers (1x, 2x, 5x, 10x) and step controls (
< Prev,Next >). - Interactive Trip Completion & Arrival Summary modal with distance, duration, safety score, and corridor badges.
- Real-time GPS coordinate display (DD/DMS format).
- Live hardware compass speedometer with vehicle limit indicators.
- Live zoom scale indicator (Global -> Country -> City -> Street/Gully).
- Integrated IndexNow API protocol for immediate broadcast to Bing, Yandex, Seznam, and Naver.
- Automatic ping dispatches for Googlebot and Bing Webmaster crawlers.
- Browser local tile caching for zero-bandwidth emergency navigation.
- Frontend: React 19, TypeScript, Vite, Tailwind CSS, Lucide Icons, Motion.
- Mapping Engine: Leaflet with custom hardware-accelerated Canvas polyline layers.
- Backend Proxy: Express Node server with OSRM routing proxies and Gemini AI API integration.
- CDN & Edge Layer: Tencent Cloud EdgeOne (
edgeone.json).
.
├── README.md # Complete project documentation & domain details
├── edgeone.json # Tencent Cloud EdgeOne CDN deployment configuration
├── server.ts # Express server with route proxy, SEO, & domain headers
├── index.html # HTML5 entry with canonical domain meta tags & JSON-LD
├── metadata.json # Application metadata & capabilities
├── .env.example # Environment variable template with CANONICAL_DOMAIN
├── src/
│ ├── App.tsx # Main application HUD & state manager
│ ├── components/ # Map UI components, modals, search panel, HUDs
│ │ ├── CityQuickBar.tsx
│ │ ├── NavigationBanner.tsx
│ │ ├── OfflineLeafletMap.tsx
│ │ ├── RouteCompletionModal.tsx
│ │ ├── RouteSearchPanel.tsx
│ │ └── SeoIndexingModal.tsx
│ ├── services/ # Routing, learning, & geocoding services
│ │ ├── routingService.ts
│ │ └── routeLearningService.ts
│ ├── utils/
│ │ └── domainConfig.ts # Centralized domain configuration for hmhsmap.edgeone.dev
│ └── data/ # World & Pakistan location databases
- Node.js v18+
- npm or bun
If you are pushing this repository to GitHub or GitLab:
- Add your remote repository:
git remote add origin https://github.com/<your-username>/<your-repo-name>.git
- Push to main branch:
git push -u origin main
- If the remote already has commits (e.g. an initial license or readme), use:
git pull --rebase origin main git push -u origin main
-
Clone the repository:
git clone <repository-url> cd react-example
-
Install dependencies:
npm install
-
Configure Environment Variables: Copy
.env.exampleto.env:cp .env.example .env
Set your
GEMINI_API_KEYin.env. -
Start Development Server:
npm run dev
Open
http://localhost:3000in your browser. -
Build for Production:
npm run build
-
Start Production Server:
npm run start
To host or point your custom domain hmhsmap.edgeone.dev:
- Set up a CNAME record in your DNS provider pointing
hmhsmap.edgeone.devto your EdgeOne / Cloud Run origin host. - Deploy using
edgeone.jsonon Tencent Cloud EdgeOne or your chosen CDN. - The Express server automatically attaches canonical header flags (
X-Served-By-Domain: hmhsmap.edgeone.dev) and handles/sitemap.xml,/robots.txt, and/api/seo/instant-index.
Developed for HMHS Map Technologies. All rights reserved.