On Aug 20, 2009, at 6:23 PM, Artem Sav wrote: > Yeah, sorry, about 2.3 minutes after posting this i actually found the > issue in bug tracker for ajax api's. > http://code.google.com/p/google-ajax-apis/issues/detail?id=169&q=zip&colspec=ID%20Type%20Stars%20Status%20Modified%20Summary%20APIType%20Opened > > And in there there was a comment about using maps to do that, which > made me revisit the geocoder results. So i stand corrected - google > maps api does return it. > > The only thing (and i am not sure this is a right place to ask, since > this group doesn't deal with maps) is that there are actually at least > two types of results returned: > response.Placemark > [0 > ].AddressDetails > .Country > .AdministrativeArea > .SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber; > and > response.Placemark > [0 > ].AddressDetails > .Country.AdministrativeArea.Locality.PostalCode.PostalCodeNumber; > > Beats me why there are SubAdministrativeArea (s) sometimes, and > sometimes not. > > On Aug 20, 7:03 pm, Jeremy Geerdes <[email protected]> wrote: >> Actually, you can use the GMaps geocoding service to get postal code >> information. Check out the documentation here: >> >> http://code.google.com/apis/maps/documentation/geocoding/ >> >> And an example of the JSON response (look for the PostalCode portion >> near the top) here: >> >> http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway, >> +Mountain... >> >> Jeremy R. Geerdes >> Effective website design & development >> Des Moines, IA >> >> For more information or a project quote:http://jgeerdes.home.mchsi.comhttp >> ://jgeerdes.blogspot.comhttp://jgeerdes.wordpress.com >> [email protected] >> >> Unless otherwise noted, any price quotes contained within this >> communication are given in US dollars. >> >> If you're in the Des Moines, IA, area, check out Debra Heights >> Wesleyan Church! >> >> And check out my blog, Adventures in Web Development, >> athttp://jgeerdes.blogspot.com >> ! >> >> On Aug 20, 2009, at 5:56 PM, Artem Sav wrote: >> >> >> >>> Hi, >>> I haven't found anything on google or in this group. >> >>> I am using limited local search to find businesses around particular >>> coordinate. >>> LocalSearch returns pretty good results in the GsearchResultClass >>> structure - name of business, address, city, state and phone. >>> Anything missing? Well, yes, the zip code. Why is it not included? >> >>> Same issue with Google Maps geocoder obviously - it doesn't include >>> postal code if you do geocoding of an address, see xml data >>> transmitted here for example: >>> http://code.google.com/apis/maps/documentation/examples/geocoding-sim >>> ... >> >>> It does make some degree of sense in case of Maps (zip being an >>> artificial thing), but in case of Local Search it makes very little >>> sense - these addresses come from yellow pages and as such do carry >>> that info in the original data source. >> >>> I guess my question is if there is any web service API from Google >>> which i could use to find postal code of an address/coordinate. I >>> can >>> already do the reverse (just put the zip in the above geocoding >>> example) >> >>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---
