React Route Planner
Search, add and drag stops, set how long you stay at each, follow the trip on a timeline of its road sections, then fly over it.
Each stop you add, drag or retime recalculates the route, and its sections fill the lanes under the map.
getSearchSuggestionsranks places, brands and categories, anddiscoverPlacessorts what it finds along the route, or along the section open on the bar, by detour.- The route dragging plugin’s
RouteDraggingmoves a stop by its pin or pulls a new one off the route line, between the stops it fits best, and hands each change and each route planned mid-drag to the planner’s own state. pauseDurationSecondscounts each stay into the travel time, andsummaryBubblestimes each alternative against the selected route.getRouteProgressForSectionplaces a section on the bar,setSectionFocusrings the one you point at, andgetSectionsWithincounts the curvy stretches only one alternative drives.trafficIncidentDetails, queried over a clicked traffic section’sgetSectionBBox, brings back the incident behind it.RouteFlyoverflies the trip once from the route alone, and a depth of field keeps the marker sharp.
Related examples
Map Chat Agent
Ask a chat beside the map for places, routes or traffic, and watch the map search, draw and frame the answer
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
A map chat whose every result lands in a side panel, where you can show, hide or drop it yourself
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Bring Your Own Data
Plugins
Web
React
Site Selection Agent
A site selection agent on the TomTom Maps SDK Agent Toolkit: hand-picked default tools, custom analysis tools, its own persona and state slice
Playground
AI
Search and Geocoding
Places and POIs
Routing
Traffic
Map Style
Base Map
Plugins
Web
React
Live Traffic Agent
AI traffic-manager assistant: monitor incidents, cluster hotspots, and analyse network state
Playground
AI
Search and Geocoding
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React