So I'm building an
edit profile page this page consists of a few fields. One field in particular requires the user to enter their location i.e the postcode.
Inside my cloud database (
Firebase) I have a list of 16k+ postcodes, now I'm trying to figure out from a UX point of view what would be the best way to display the location that matches the postcode the user enters.
Here's the two options I've come up with so far.
1) Either use Typehead example when the user types their postcode, make a call to the database and retrieve the location that matches, this could potentially return more then one location due to street names etc.
2) When the user has entered their postcode and clicked save, I then query the database return the locations and display them on popup modal allowing the user to further choose their location.
I like option 1 the most, however the query to the cloud database (
Firebase) is roughly 1.5 seconds obviously this will be dependent on the users internet connection, I've also enabled the index on this given table, to make
read request faster.
From a UX point of view, what would you recommend?