On Dec 8, 3:38 pm, webmaster <[email protected]> wrote: > > The documentation > page,http://code.google.com/apis/maps/documentation/geocoding/index.html > , says that the KML response is structurally identical to the JSON > output, but it's not. In JSON, accuracy is just another element, but > in KML (and XML), it is some kind of parameter of AddressDetails, as > in: > <AddressDetails Accuracy="8"> > How do I access that data?
It's called an attribute. It's the "Accuracy" attribute of the "AddressDetails" element. http://www.php.net/manual/en/simplexmlelement.attributes.php > I was partly confused before that the code given had > "result" where mine has "response". I still don't understand why using > Javascript would call for that difference. It doesn't. What you call what is returned is up to you. You could store the geocoder data in a variable called "WhatTheGeocoderGaveMe" if you like, as long as you're consistent in referring to it. It doesn't matter. 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.
