Search playground

Suggest places, brands and categories as you type, then page through a picked brand or category in view

View on GitHub
SDK 1.0.0

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.

  • getSearchSuggestions returns all three in one ranked list, and one createLatestRequest keeps a superseded keystroke from painting.
  • A brand or category carries refineParams for discoverPlaces, and each page’s nextCursor fetches the next.
  • The list draws itself from shown-features, so it matches the pins whichever call drew them.
  • setEventState highlights a pin from the list, and getEventStates keeps the clicked one across pages.

Related examples