Thanks for your quick answer Andrew, using Italy is one of the first
test i've done but i always get the result in Corsica as you can see
in below.
Maybe 20100 is not registered among google postal codes, i don't
know ...
You said using italy worked for you can you please send the the http
string you used.

Thanks.

{
  "name": "20100, italy",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "20100, Francia",
    "AddressDetails": {"Country": {"CountryNameCode":
"FR","CountryName": "Francia","AdministrativeArea":
{"AdministrativeAreaName": "Corsica","SubAdministrativeArea":
{"SubAdministrativeAreaName": "Corsica del Sud","PostalCode":
{"PostalCodeNumber": "20100"}}}},"Accuracy": 5},
    "ExtendedData": {
      "LatLonBox": {
        "north": 41.6614850,
        "south": 41.4888398,
        "east": 9.0846032,
        "west": 8.7811575
      }
    },
    "Point": {
      "coordinates": [ 8.9466146, 41.5910472, 0 ]
    }
  } ]
}


{
  "name": "20100, IT",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "20100, Francia",
    "AddressDetails": {"Country": {"CountryNameCode":
"FR","CountryName": "Francia","AdministrativeArea":
{"AdministrativeAreaName": "Corsica","SubAdministrativeArea":
{"SubAdministrativeAreaName": "Corsica del Sud","PostalCode":
{"PostalCodeNumber": "20100"}}}},"Accuracy": 5},
    "ExtendedData": {
      "LatLonBox": {
        "north": 41.6614850,
        "south": 41.4888398,
        "east": 9.0846032,
        "west": 8.7811575
      }
    },
    "Point": {
      "coordinates": [ 8.9466146, 41.5910472, 0 ]
    }
  } ]
}


On Mar 31, 2:54 pm, Andrew Leach <[email protected]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to