Greetings,
I use google geocoder in my application to receive the town name and
location from my suggestion box widget. (user starts typing address
and suggestions with town names appear).
I have a problem with google geocoder when I receive results with
accuracy 4 (Town level accuracy). I expect to get the town from
"Locality" section but where is no town in the result. Examples of
such results are:

Request:

http://maps.google.com/maps/geo?q=10021&output=json&hl=en

Response:

{
...

  "Placemark": [ {
    "id": "p1",
    "address": "Manhattan, NY 10021, USA",
    "AddressDetails": {
   "Accuracy" : 5,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "NY",
         "DependentLocality" : {
            "DependentLocalityName" : "Manhattan",
            "PostalCode" : {
               "PostalCodeNumber" : "10021"
            }
         }
      },
      "CountryName" : "USA",
      "CountryNameCode" : "US"
   }
}
...
}


or

request:

http://maps.google.com/maps/geo?q=westminster&output=json&hl=en

response:

{
 ...
  "Placemark": [ {
    "id": "p1",
    "address": "Westminster, Greater London, UK",
    "AddressDetails": {
   "Accuracy" : 4,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "Greater London",
         "SubAdministrativeArea" : {
            "SubAdministrativeAreaName" : "Westminster"
         }
      },
      "CountryName" : "UK",
      "CountryNameCode" : "GB"
   }
}
...
}

Did I miss something? How can I get the town name in this case?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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