one last question, being i am a novice with XML, the code is already doing all that you have mentioned, and thank you your advice, but does it make a difference that the Placemark has an ID property?
probably a stupid question but i am at a lose as to why this is not working. On Jun 4, 12:44 pm, Andrew Leach <[email protected]> wrote: > On Jun 4, 5:19 pm, talind <[email protected]> wrote: > > > hopefully you guys can help me out what is KML?? > > KML ("Keyhole Markup Language") is a particular flavour of XML. > > > its the first node in the XML file that results from this call > > > $locfile > > =http://maps.google.com/maps/geo?q=33309&output=xml&key=ABQIAAAAY2IWmk... > > > this results is supposed to be used with a PHP object --> > > simplexml_load_file($locfile) > > That geocoder output does not have the coordinates in the first node. > It's in the "coordinates" element. It might be in the first node if > you replace output=xml with output=csv [Or maybe not, because that > won't be well-formed XML]. > > > i am a novice when it come3s to XML and PHP so any help would be > > great. The php is supposed to be pulling the coordinates from the > > returned xml file but for what ever reason, the object is not doing > > its job by pulling in the xml or something. > > Providing your system can load external files, it's probably loading > the XML, but you need to look in the right place for the data you > need. > > $xml=simplexml_load_file($locfile); > $coords=$xml->Response->Placemark->Point->coordinates > > Then split $coords and use the constituent parts. > > 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 -~----------~----~----~----~------~----~------~--~---
