Posted by mossy2100 on July 3, 2011 at 2:11am
Hi all
I'm creating a new D7 site that has venues. For each venue I want to record the address and display it in on the venu node page as a Google Map. In D6 I would have simply used location and gmap - however, it seems like this part of D7 is still developing. Location is D7-ready but gmap is not (ok I will try the dev version), and now there is the lovely "addressfield" - however, this is specifically designed for postal addresses and (afaik) does not have Google Maps integration. Since the site also uses Commerce, I will have addressfield anyway and I don't really see the need for both - but it may be necessary.
Thoughts?
Cheers,
Mossy

Comments
Geocode + Geofield combination
I'm currently working on a project which requires rendering a basic map generated from a single address field. We've used a combination of the following:
http://drupal.org/project/geofield
https://github.com/phayes/geocode
https://github.com/phayes/geoPHP (required by geofield)
We use a single textfield which contains the address (correctly formated... eg street, suburb, state postcode). Then we've setup a geofield field which takes it's input from the address field and uses the geocode module to save lat/lon data. From there you can either roll your own map via custom theme functions or use one of the existing map formatter modules for geofield.
Doing something similar ATM,
Doing something similar ATM, although currently I'm using the map input widget for various reasons. Good to see that the geocoder integration is working as well...will need that soon.
For the map display I use OpenLayers - works great. The documentation from geofield explains how to use the OpenLayers map formatter to show the location on node view - all you have to do is configuring the map to use a Google map as the default base layer (API key can be added in OpenLayers). Have to say that I quite like the Open Street Map, but for most clients a map means a Google map.
@Mossy If you choose to go down this road and get stuck, just post here again.
I also believe that
I also believe that addressfield has integration with geocode (or vice versa actually), and there are several patches to use addressfield with Australian addresses (http://drupal.org/node/1044246)