Pricing Blog

Best practice for an autocomplete search field?

  • musictrader-1212612954113966120

    musictrader

    1 year ago

    I have an input field that needs to autocomplete a list of best possible matches of US cities when the user starts typing their city.

    I’ve populated a Supabase table with the list of cities and I’ve tried using the rest API to make this query but I’m not having any luck. Is there a way to use the Supabase JavaScript client rather than a REST query or is there another recommended way to implement an autocomplete feature?
  • musictrader-1212878958320680960

    musictrader

    1 year ago

    Just wanted to let people know that I ended up being successful by just using Google's Places API. It's quick and super responsive.