I went through this excellent tutorial of google https://developers.google.com/maps/articles/phpsqlsearch but i din’t understand the part where the xml file generated is read by the API. i went through the post twice but still not getting it. Could someone explain it to me please.?
I went through this excellent tutorial of google https://developers.google.com/maps/articles/phpsqlsearch but i din’t understand the
Share
I couldn’t figure out which part you didn’t understand so I’ll give a broad overview.
Reading the XML happens here:
searchUrlpoints to the php file with appropriate parameters, thenGDownloadUrlperforms the Ajax call to the php file.function(data)is the callback that is run when the XML is returned. Finally,markersis produced from the XML, taking elements with tag namemarker. Then the rest of that block of code is placing markers and updating the sidebar with the results.