Wasn't it webmaster who wrote:
>Sorry if this is dumb, but I don't understand the code below. I'm
>accessing the geocode as XML through the HTML service and use elements
>in the form, for example:
>     $sXML->Response->Placemark->Point->coordinates
>
>Placemark does not seem to be an array here, or is this equivalent
>to ...?
>     $sXML->Response->Placemark[0]->Point->coordinates
>
>Thanks for your help.

I can't tell what language you're using there. When you query a location
like "Bispham Road, Bispham, UK", you get a reply with a structure like
this:

<kml>
  <Response>
     <name>Bispham Road Bispham UK CA</name>
     <Status>
       <code>200</code>
       <request>geocode</request>
     </Status>

     <Placemark id="p1">
       <address>Bispham Rd, Blackpool FY2 0, UK</address>
       ...
     </Placemark>

     <Placemark id="p2">
       <address>Bispham Rd, Hardhorn and Thornton, UK</address>
       ...
     </Placemark>

     <Placemark id="p3">
       <address>Bispham Rd, FY5 1, UK</address>
       ...
     </Placemark>

  </Response>
</kml>

The server language that you're using presumably provides the ability to
access the second and third <Placemark> entries, but I've no idea what
the syntax might be.

http://maps.google.com/maps/geo?q=Bispham+Road+Bispham+UK+CA&output=xml

-- 
Mike Williams
http://econym.org.uk/gmap


--

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.


Reply via email to