Try this map: http://maps.forum.nu/gm_main.html
Type "Darwin" in the search box. -- Marcelo - http://maps.forum.nu -- On Dec 8, 12:45 pm, webmaster <[email protected]> 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. > > On Dec 7, 11:02 pm, Mike Williams <[email protected]> wrote: > > > If there aremultiplePlacemarks, then the result.Placemark[] array will > > have length greater than 1. > > > if (result.Placemark.length > 1) { ... } > > > You can loop through the Placemark[] array like this: > > > for (var i=0; i<result.Placemark.length; i++) { > > var coords = result.Placemark[i].Point.coordinates; > > var address = result.Placemark[i].address; > > ... > > } > > > E.g.http://econym.org.uk/gmap/example_didyoumean1.htm > > Mike Williamshttp://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.
