How do I get Google Maps “Places API” to return ZIP code information? In all the examples I find on the internet, none of them show results returning that contain a ZIP code. Is there a trick to this or is it not possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This seems like it’s returning a “postal code” (4 digits for some reason) in the
address_componentsection:https://developers.google.com/places/documentation/#PlaceDetailsRequests
However, I think what you’re looking for is the Google Geocoding API:
You can see in the JSON and XML responses a 5-digit postal code:
https://developers.google.com/maps/documentation/geocoding/#JSON