Tuesday, December 8, 2009

Re: How to check for and retrieve multiple placemarks?

Yes, thank you. I couldn't try that right away because I was debugging
another error and my code was broken. It's working now and I've tried
Placemark[0] and it works. So I'm writing the code to test the array
length and access additional elements.

However, I now see another problem.

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?

If you give me the answer in Javascript, I should be able to translate
it to 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.

Thanks for your help.

On Dec 8, 5:01 am, Andrew Leach <andrew.leac...@googlemail.com> wrote:
> On Dec 8, 12:51 pm, webmaster <ListMa...@MBurns.com> wrote:
> You surmise Placemark[0] which seems reasonable. What happens when you
> try that?

--

You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate