Status Update
Comments
ca...@google.com <ca...@google.com> #2
Thank you for posting.
Kindly provide more information regarding your issue so we can further investigate. Also please do not disclose any possible PII such as API key, email address, IP, contact number, any part of name, project numbers and billing accounts as these information may violate security and privacy.
- Sample request of the API you are using.
- The actual and your expected results.
- Screenshots in a standard image format (e.g. PNG or JPEG) or screen recordings and steps to reproduce the issue.
jo...@loanstartech.com <jo...@loanstartech.com> #3
var geocoder = new google.maps.Geocoder();
geocoder.geocode( {'address': zip, componentRestrictions: { postalCode: zip } }, function (results, status) {
See attachment.
It is also being reported for zip code: 13416.
ca...@google.com <ca...@google.com> #4
Thank you for the reply.
Please provide the complete request with all the values of the parameters used for further checking. Also note that the combination of Component Filtering (postal_code & country)
is needed to get the correct result for the largest portion of all postal codes that exist in Google Maps in each country. Adding the country like US
(if it is in USA) narrows the context of this query sufficiently to trigger the desired result.
Sample request:
Result:
place_id: "ChIJnfGzNv802YkR2AvJy7sB1Fw",
postcode_localities: [
"Middleville",
"Newport",
"Norway"
],
types: [
"postal_code"
]
jo...@loanstartech.com <jo...@loanstartech.com> #5
And the full code for that function call is in the screenshot attached.
If we should be including a country filter, could you provide guidance on how to do that with this JavaScript library or point us to this library's documentation?
Description
#REMINDER: Please do not disclose any PII. Some examples of PII are email address, IP, contact number, any part of name, project numbers and billing accounts. Comments or attachments that include PII will be removed and restricted from public viewing as it may violate our security and privacy policies.
Please refrain from emailing a reply 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
========================================================================
Issue report
----------------
What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.
1. Enter either zip code for the api: 13148 or 14805
2. Receive invalid zip error
These are valid zip codes through USPS.