I have a mySQL db of locations and am setting up a "more details" page for each of them. To do this I have created a dynamic page that, when passed a variable displays dynamic info about that location. (ie: mysite.com/results.php?&location_number=20 will show the name, address, phone number, etc for location number 20 in the mySQL table). My only problem is trying to create a map zoomed in on this location that is done dynamically. I've gotten as close as having the map zoom to the location, but there is no marker.
Here's the code I've used: echo "<iframe width='665' height='350' frameborder='0' scrolling='yes' marginheight='0' marginwidth='0' src='http://maps.google.com/maps? f=q&source=s_q&hl=en&geocode=&q=" . explode('+', $row[2]) . "&sll=" . $row[3] . "," . $row[4] . "&sspn=0.213476,0.347099&ie=UTF8&hq=&hnear=" . explode('+',$row[2]) . "z=18&iwloc=A&output=embed'></iframe>"; row 2 is the address row formated "# Street, City, ST, Zip", row 3 is the lat and 4 is the long. I know I'm missing a couple of fields in that code after the "hnear" but I do not know what those lat/long figures represent and certainly do not have them in my database. I need help on how to accomplish this. Everything else is already working so nicely! Part 2 of this question would be about how SEO-friendly this method is? Would static pages be better? What if you have close to 25,000 locations? -- 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.
