views:

454

answers:

4

I have a database full of addresses and pictures of those locations. Note: I do not have the latitude / longitude.

What I need to do:

Write a function that uses Google API v3 to list a few of these addresses on a Google map, that when you click on the marker, it displays the address and the picture from the database. This is a plugin for a page, so I cannot edit the header data. I can only insert code where it is being displayed.

I've already read through the documentation but it seems like everything has a lot of unnecessary code and stuff that my geomap doesn't need. I'm looking for the simplest possible solution so that I can add to it later if I want to.

+1  A: 

Maybe you want to try Gmapper (http://sourceforge.net/projects/gmapper/) a nice php class to do Google Maps. It's a simple way to generate all the javascript and it can also look up addresses. Be aware that Google limits the number of lookups for addresses, you probably won't be able to retrieve your db in one day.

svens
It was last updated a year ago. Does it run on api v3? V3 doesnt require an API key and doesn't have limits IIRC.
Citizen
I'm not sure if it uses V3. I does need a key. Seems like this is not a solution for you, sorry for that.
svens
No problem. I hope someone else can help :)
Citizen
V3 looks quite similar to what this tool creates, maybe you can adapt it?
svens
Looks similar but the code is completely different.
Citizen
A: 

RTFM I guess. More documentation reading since no one here knows the answer :(

Citizen
I didn't know you could pick your own reply as the answer!
Robert Grant
+1  A: 

Can I point you at a site I did pretty much exactly that (except it updates when you hover a marker rather than click on it; just move the code into the empty click event provided rather than the hover event). In the spirit of real coding, hopefully you can adapt what I've done!

http://www.primrose-house.co.uk/localattractions

Robert Grant
I don't see a map.
Citizen
Click on the "Click here to see the attractions on a map" link :)Sorry I forgot we'd changed it to default to the non-map behaviour :)
Robert Grant
+1  A: 

Click on the red marker on the map I've made here: http://www.dougglover.com/samples/UOITMap/index.html

Is that about what you're looking for?

Douglas