Store locator
Find the nearest of your own stores by drive time, from any address.
A bakery chain’s own GeoJSON shows as pins, and the address you type lines up its three nearest stores in order of drive time, with the route to the one you pick.
PlacesModule.showtakes thePlacescollection instores.tsunchanged, as it would a search response, andlabel.titlereads each store’sname.calculateRoutetakes the geocoded address and a store feature unchanged, so ranking the straight-line shortlist costs three calls and no conversion.setEventStategives the store picked in the list the same pin look a click on the map gives it.
Related examples
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
Add Stops to Route
Find stops along a route within a one-minute detour and insert them all at optimal positions in a single call.
Getting Started
Routing
Search and Geocoding
Electric Vehicles
Utilities
Web
Along route search
Find the beaches and viewpoints within a one-minute detour of a coastal drive
Getting Started
Routing
Search and Geocoding
Web
Show your own GeoJSON as places
Fetch a council's listed buildings as GeoJSON and pin each one, named, on the map
Getting Started
Bring Your Own Data
Places and POIs
Web