On Mar 31, 1:39 pm, "[email protected]" <[email protected]> wrote: > I'm using httpgeocoding in my app to localize some italian stores by > thier postal code. > I noticed strange results using city postal code. > If i query google maps using this string "http://maps.google.com/maps/ > geo?q=20100,italia&output=json&key=&oe=utf8&gl=it" , i get one result > in France and some in Argentina but 20100 is the postal code for the > city of Milano (I mean 20100 is for the whole city and city's zones > has their own postal codes). > The same happens with 40100 (Bologna), 50100 (Firenze) and 56100 > (Pisa), but it does not happen for 00100 (Rome).
It looks like you need to use "Italy" not "Italia" or even "IT". I have no idea why 20100 is returning Corsica, because that's French not Italian; the Argentine results appear to be due to streets being called "Italia". If you use "56100,IT" the first result is in the Netherlands and you get Chinese results before Italian! (In fact there are no Italian locations returned at all for that code) I would certainly have assumed that if "Italia" is the last element of an address, it's the country. But it does work if you use "Italy". Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
