never mind. found this in the API reference. Seems the right way to get this is to do like so:
point.lat() point.lng() On May 6, 10:52 am, gtuerk <[email protected]> wrote: > Hi. I'm having a bit of a problem parsing the response from the > ClientGeocoder, specifically getting the latitude and longitude. My > placemarks array comes back fine and I'm able to get all the data from > AddressDetails but I can't seem to get the latitude and longitude from > the Point object. Where am I going wrong? > thanks > g > > if (selectedLocation.addressDetails.Country != null){ > country = > selectedLocation.addressDetails.Country.CountryName; > if > (selectedLocation.addressDetails.Country.AdministrativeArea != > null){ > state = > selectedLocation.addressDetails.Country.AdministrativeArea.AdministrativeAreaName; > if > (selectedLocation.addressDetails.Country.AdministrativeArea.Locality ! > = null){ > city = > selectedLocation.addressDetails.Country.AdministrativeArea.Locality.LocalityName; > if > (selectedLocation.addressDetails.Country.AdministrativeArea.Locality.PostalCode > ! > = null){ > postalCode = > selectedLocation.addressDetails.Country.AdministrativeArea.Locality.PostalCode.PostalCodeNumber; > } > if > (selectedLocation.addressDetails.Country.AdministrativeArea.Locality.Thoroughfare > ! > = null){ > address = > selectedLocation.addressDetails.Country.AdministrativeArea.Locality.Thoroughfare.ThoroughfareName > } > } > } > } > if (selectedLocation.point.coordinates != null){ > latitude = > selectedLocation.point.coordinates[1]; > longitude = > selectedLocation.point.coordinates[0]; > > I've tried to use the example response parser > athttp://gmaps-samples-flash.googlecode.com/svn/trunk/demos/GeocodingDe... > and I notice that Point has a coordinates array so that's what I'm > trying to use to get the lat and long. Help please! > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
