Store Locator - Sample Code

issauni

New Member
I followed the tutorial in google developer articles about the Store Locator using PHP and SQLThey wrote there that if the genXML not work they have a sample code that dump the xml with the markers elements.here is the sample code : http://gmaps-samples.googlecode.com/svn/trunk/articles-phpsqlsearch/phpsqlsearch_genxml_php4.phpThe output of the XML isThis XML file does not appear to have any style information associated with it. The document tree is shown below.\[code\]<markers></markers>\[/code\]there is XML output but without the data from the db.if i use the code that generate the markers without the radius counting its work but on the map near every "store" aside the name there is (NaN) its mean that there is no distance.the code for this example is :http://gmaps-samples.googlecode.com/svn/trunk/articles-phpsqlajax/phpsqlajax_genxml2.phpand the output will be :This XML file does not appear to have any style information associated with it. The document tree is shown below.\[code\]<markers> <marker name="Frankie Johnnie & Luigo Too" address="939 W El Camino Real, Mountain View, CA" lat="37.386337" lng="-122.085823"/> <marker name="Amici's East Coast Pizzeria" address="790 Castro St, Mountain View, CA" lat="37.387138" lng="-122.083237"/> <marker name="Kapp's Pizza Bar & Grill" address="191 Castro St, Mountain View, CA" lat="37.393887" lng="-122.078918"/> <marker name="Round Table Pizza: Mountain View" address="570 N Shoreline Blvd, Mountain View, CA" lat="37.402653" lng="-122.079353"/> <marker name="Tony & Alba's Pizza & Pasta" address="619 Escuela Ave, Mountain View, CA" lat="37.394012" lng="-122.095528"/> <marker name="Oregano's Wood-Fired Pizza" address="4546 El Camino Real, Los Altos, CA" lat="37.401726" lng="-122.114647"/></markers>\[/code\]but as i said with out the distance near the name .anyone have any idea? maybe to add a radius counter to the second code? but i dont know how to implement it in the second code. if you have any idea Thanks!
 
Back
Top