INTEGRASI PHP/MySQL DENGAN GOOGLE MAPS API

Andi Sunyoto

Intisari / Abstract


This article is intended who want to learn how to use Google Maps with a MySQL database. After completing this tutorial, you will have a Google Map based off a database of places.  An info window with name and address information will display above a marker when clicked. By using an XML file as an intermediary between our database and our Google Map, it makes for a faster initial page load, a more flexible map application, and easier debugging. You can independently verify the XML output from the database and the JavaScript parsing of the XML. And at any point, you could even decide to eliminate your database entirely and just run the map based on static XML files. In the PHP, first initialize a new XML document and create the "markers" parent node. Then connect to the database, execute a SELECT * (select all) query on the markers table, and iterate through the results. For each row in the table (each location), create a new XML node with the row attributes as XML attributes, and append it to the parent node. Then dump the XML to the screen.


Teks Lengkap:

PDF

Referensi


Brown, C, Martin., Hacking Google® Maps and Google® Earth., Wiley Publishing, 2006

Google.Code.,MapV3,.Tutorial.,http://code.google.com/apis/maps/documentation/v3/introduction.html#Intro, 2009

Fox , Pamela., Google Geo Team, Stucker, Lary., Using PHP/MySQL with Google Maps., http://code.google.com/apis/maps/articles/phpsqlajax.html., 2007

Purvis, Michael., Sambells, Jeffrey., Turner, Cameron., Beginning Google Maps Applications with PHP and Ajax From Novice to Professional., Apress, 2006


Refbacks

  • Saat ini tidak ada refbacks.