Using custom dropdown in Google Places API

I am using Google Places API to show a drop-down.

But this site shows a custom drop-down with Places API - if what the user types isn’t available in Google Places then the top most option is what the user has typed in.

Is this achievable using the default functionality of Google Places API or do I need to write a custom-dropdown ?

You’ll need to:

  1. Use Google Places API: Fetch the place suggestions as the user types.
  2. Create a Custom Dropdown: Build a custom dropdown that displays these suggestions.
  3. Add Custom Option: If the user’s input isn’t in the suggestions, add their input as the top option in the dropdown.
    Read More