Open saranshbansal opened 5 years ago
@saranshbansal Change searchOptions={{ types: ['address'] }}
to searchOptions={{}}
.
Try setting searchOptions to searchOptions={{ ["(regions")] }}
, also see: https://developers.google.com/places/supported_types#table3
searchOptions={{ types: ["(regions)"] }}
worked for me. Note the parentheses are required. You can then filter by postal_code
in address_components
, types
array.
I need to be able to search via post/zip codes but currently it is not showing any results. Here is my setup: