Back to all examples
Along route search playground
Interactively search for places along a route by query or POI category
Type a query, tick categories and set the detour allowance. The matches land as pins along a fixed route, and each search replaces the last.
discoverPlacesswitches to along-route mode the moment arouteis passed, so query, categories andmaxDetourTimeSecondsgo into one call, not a fetch plus a filter.PlacesModule.clearthenshowswaps one result set for the next with no layer teardown.calculateFittingBBoxfits the route into the map area the panel leaves free, not the whole canvas.createLatestRequestretires the previous search, so a slow answer cannot paint last.
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