Im using google geocoder and I want to restrict result to some countries (for example I don't want to search in USA).
Using:
componentRestrictions: {
country: 'de'
}
Works fine, but I would like to add more countries, tried passing array:
componentRestrictions: {
country: ['de','at','ch']
}
But it gives an error
Is there anyway to add more than one country to restrictions?
Thanks
components=country:DE
to the request url. Did it like this:googlemaps.Client(key='my_key', requests_kwargs={'params': {'components': ['country:DE']}}
Hope this helps someone! – Ketch