Skip to content

jlengrand/tomtom-current

Repository files navigation

TomTom Maps SDK Demo

Vanilla TypeScript + Vite demo app using the TomTom Maps SDK.

Features

  • 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

Prerequisites

Setup

npm install

Set your API key in src/main.ts:

TomTomConfig.instance.put({ apiKey: "YOUR_API_KEY", language: 'en-US' });

Commands

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 locally

Docker

docker build -t tomtom-fun-vite .
docker run -p 8080:80 tomtom-fun-vite

App available at http://localhost:8080.

Stack

  • TomTom Maps SDK ^0.46
  • TypeScript ~6.0
  • Vite ^8.0
  • Nginx (production container)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages