Vanilla TypeScript + Vite demo app using the TomTom Maps SDK.
- Interactive map with a route between two waypoints
- Traffic incident panel for the destination area
- POI/place search along the route
- Collapsible side panel UI
- Node.js 18+
- A TomTom API key (get one free)
npm installSet your API key in src/main.ts:
TomTomConfig.instance.put({ apiKey: "YOUR_API_KEY", language: 'en-US' });npm run dev # Start dev server with HMR at http://localhost:5173
npm run build # Type-check and bundle to dist/
npm run preview # Preview production build locallydocker build -t tomtom-fun-vite .
docker run -p 8080:80 tomtom-fun-viteApp available at http://localhost:8080.
- TomTom Maps SDK
^0.46 - TypeScript
~6.0 - Vite
^8.0 - Nginx (production container)