Hi, wondering if you can add the functionality that will restrict the result of autocomplete based on the country option?
Never Mind. Just found out the way to do it. Should've checked it earlier.
Just need to pass down the components attribute with the value of the country you want to be restricted to.
query={{
key: GoogleMapAPIKey,
components: 'country:nz'
}}
if you need to filter for multiple countries add it like this
components: 'country:at|country:de'
Most helpful comment
Never Mind. Just found out the way to do it. Should've checked it earlier.
Just need to pass down the
componentsattribute with the value of the country you want to be restricted to.query={{
key: GoogleMapAPIKey,
components: 'country:nz'
}}