Search playground
Suggest places, brands and categories as you type, then page through a picked brand or category in view
A few letters bring back places, brands and categories. Pick a place to fly to it, or a brand or category to page its POIs into view.
getSearchSuggestionsreturns all three in one ranked list, and onecreateLatestRequestkeeps a superseded keystroke from painting.- A brand or category carries
refineParamsfordiscoverPlaces, and each page’snextCursorfetches the next. - The list draws itself from
shown-features, so it matches the pins whichever call drew them. setEventStatehighlights a pin from the list, andgetEventStateskeeps the clicked one across pages.
Related examples
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.
Playground
Routing
Search and Geocoding
Electric Vehicles
User Interaction Events
Utilities
Plugins
Web
React
Reverse geocoding playground
Reverse geocode a clicked point, with every request option on one panel
Playground
Search and Geocoding
User Interaction Events
Web
Add Stops to Route (Playground)
Dynamically add and remove intermediate stops on a route by clicking the map
Playground
Routing
Utilities
User Interaction Events
Web
Along route search playground
Search along one of several drives by query or category, or only along chosen section types or a share of its length
Playground
Routing
Search and Geocoding
Web