I am using the Searchbox plugin with Choices style set to “Geographic places”. When user selects any address from the dropdown, most of the time, those addresses in the autofill don’t have Zip Codes in them.
To resolve this, I am using Google Places API to format the address and it comes back with Zip Codes included but only 90% of the time. For rest of the addresses, the retrieved formatted location won’t have Zip code in it.
This issue becomes more prominent when we search locations from different countries. For instance, it would sometimes give Zip Codes for all the addresses of Canada we test with but will stop including Zip Codes for Belgium’s address.
It is crucial for this app I am building to maintain have Zip Code in each address. Does anyone have any thoughts on how to go about resolving this issue?
Thanks for taking the time to read this. Looking forward to your response!