I have been scratching my head, trying various configurations, and reading forum posts for days, trying to get geocoding to work for node locations with Gmap. I have tried disabling geocoding in the location module, and enabling the Google geocoder in GMap Location, and the reverse. Nothing seems to work. From reading posts in the development forums, I see that there is activity around building at least 2 geocoding modules.

The GMap UI seems to indicate that geocoding is possible, but the documentation is unclear and there are lots of other signals that it doesn't work. Can someone clarify this for me, and if it does work, point me in a direction to get it working on my site.

Thanks! -David

Comments

ultimike’s picture

David,

Yes, this is possible and one of the strengths of the GMap module.

The one tricky part is that you'll need to enter your Google Maps API key in two places:

-on the gmap settings page: admin/settings/gmap

-on the location geocoding settings page for google: admin/settings/location/geocoding/us/google

Let me know if you're still having an issue.

-mike

brollo’s picture

Hey

I did as you say but when I set the location from a user profile ( I need this mainly for user profiles) , the lat and long are set to 0.

I need to geocode location provided addresses to lat / long coordinates so that I can display a user marker on a gmap.
My addresses are mainly in Germany , Austria and switzerland.

Any idea why the coordinates are being setted to 0?

userofdrupal’s picture

Is that right that almost a year later it's still not working for you? I'm trying the same thing, I think, but it's not working. I have entered addresses using the location module and I have maps displayed and I can manually set the lat and long but it does not automatically calculate the lat and long based on the node's location address. I have set the google maps API key in both places. What am I missing?

userofdrupal’s picture

Okay I just found this thread which helped me so now it appears to be working. The responses by Michelle helped me specifically this one: http://groups.drupal.org/node/5083#comment-15234