Save latitude/logitude values in database for plotting on Google map
Hi,
I'm looking to create a gallery system whereby each gallery 'album' will be a node, and will contain a repeater datatype to add images to each album, along with a description, tags etc for the album. Fine so far.
What I also want to do though is plot each album on a google map. So for this, I need a means of saving lat/lng values along with the other data for the albums. I've tried previously to plot multiple addresses on a map, but it doesn't work at any volume at all, so the only way to do this is to store the geocoded lat/lng values in a database and use these to plot. This leaves the quandry of how to get lat/lng values into the database in a clean and simple way. I know it's possible to geocode single address fields into lat/lng using the Google API, but I wondered if this is something this package can do or whether I need to attempt to build my own datatype which can take an address and convert it by ajax into lat/lng?
Save latitude/logitude values in database for plotting on Google map
Hi,
I'm looking to create a gallery system whereby each gallery 'album' will be a node, and will contain a repeater datatype to add images to each album, along with a description, tags etc for the album. Fine so far.
What I also want to do though is plot each album on a google map. So for this, I need a means of saving lat/lng values along with the other data for the albums. I've tried previously to plot multiple addresses on a map, but it doesn't work at any volume at all, so the only way to do this is to store the geocoded lat/lng values in a database and use these to plot. This leaves the quandry of how to get lat/lng values into the database in a clean and simple way. I know it's possible to geocode single address fields into lat/lng using the Google API, but I wondered if this is something this package can do or whether I need to attempt to build my own datatype which can take an address and convert it by ajax into lat/lng?
Anyone done this at all?
Thanks
That'll teach me for not reading the documentation carefully - it seems that storing lat/lng values is exactly what this package does! Happy days.
is working on a reply...