Back to all examples
Places by category in words
Name a kind of place in one of five languages and find it inside the Paris outline
A word in the chosen language becomes pins for that kind of place inside Paris, and a word no category matches clears them and says why.
filters.poiCategoryQueryondiscoverPlacesresolves the word in the call’slanguageto POI category codes, so no category lookup comes before the search.- The same call takes the polygon
geometryDatareturns undergeometries, andGeometriesModulewithfill: { style: 'inverted' }shades everything outside it. createLatestRequestretires the previous search, so a quick language switch never paints the older word.
Related examples
Geometry search playground
Search for places within specific geographic boundaries
Playground
Search and Geocoding
Geometry
Web
Map Chat Agent
Interactive map assistant using AI to control maps and services
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
Plugins
Web
React
Map Chat Agent State Playground
Interactive map assistant using AI to control maps and services
Playground
AI
Search and Geocoding
Places and POIs
Map Style
Base Map
Geometry
Traffic
Routing
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