Hi CJ- The geocoding output currently uses something called xAL (an XML schema) to format the structured address details, and it means that different elements sometimes appear at different points in the AddressDetails chain. You should actually be able to inspect just the first result of the reverse geocode and look through it for any property named CountryNameCode, you shouldn't need to look through the multiple results.
If you're simply looking for region/country level accuracy, you might be better off using a service specifically designed for that. Geonames has a few relevant services. See: http://gmaps-samples.googlecode.com/svn/trunk/geonames/reversewebservices.html - pamela On Sat, Dec 20, 2008 at 9:14 AM, CJ <[email protected]> wrote: > > Hi, > > I'm currently calling the ClientGeocoder.reverseGeocode() method and > it's returning the event as expected and I'm able to get the > placemarks array with no problems. However, when inspecting this > placemarks array in the debugger, there doesn't seem to be a lot of > consistency between subsequent calls. All I really want to know is > what regional area a set of lat,lng coords are in. A county name > would be great. However, this placemarks array is making it difficult > to grap this info programatically since the county is sometimes in > index 5, sometimes it's in index 3, sometimes it's somewhere else. > It's always there somewhere. The point is each call it could be > somewhere different, so how am I supposed to write a piece of code to > get this info? I've been searching around the web and this group and > I haven't seen an answer to this question yet. > > Thanks, > > CJ > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
