Status Update
Comments
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com> #2
Thanks for the post!
As mentioned in
You can use Places Autocomplete that allows to restrict requests to multiple countries. For more information, please check the documentation here:
https://developers.google.com/maps/documentation/places/web-service/autocomplete#components https://developers.google.com/maps/documentation/javascript/places-autocomplete#add-autocomplete
That said, we will mark this issue as a duplicate of
Description
===========================================================================================
#REMINDER: Please do not disclose any possible PII such as: email address, IP, contact number, any part of name, project numbers and billing accounts as these information may violate security and privacy. Comments or attachments that include PII will be removed and restricted from public viewing.
Furthermore, please refrain from replying to a comment as this will make your email address visible. Instead, you may use the Issue Tracker’s comment feature for your replies.
It is OK to share your API Project ID, but _not_ API keys or client ID credentials.
To learn more about personal data, visit
===========================================================================================
Hello,
We are using Google maps api version 3.43.3 for our project. We want to restrict the geocoder to multiple countries. We noticed that you can do this with the Autocomplete api, but we can't seem to do the same thing with the geocode api. Is this something we could add?
# Please report the version of Google Maps API
# Open the developer console and type: 'google.maps.version' and then press enter.
# Example:
# > google.maps.version
# <- "3.34.7"
# What steps will reproduce the problem? Please also provide a code sample which demonstrates your issue (e.g. via
geocoder.current.geocode({
address,
componentRestrictions: {
country: ['us', 'ca', 'mx', 'pr', 'vi', 'gu', 'mp', 'as']
}
}