I've been playing with the GMap module for the first time, and have reviewed several how-to videos.
I'm able to allow a user to specify the location on the map (by clicking).
How can I get the address/city/state/zip to calculate the latitude and longitude automatically?
Here's the text that appears in the "Location" section of Content, Edit:
If you wish to supply your own latitude and longitude, you may enter them above. If you leave these fields blank, the system will attempt to determine a latitude and longitude for you from the entered address. To have the system recalculate your location from the address, for example if you change the address, delete the values for these fields.
You may set the location by clicking on the map, or dragging the location marker. To clear the location and cause it to be recalculated, click on the marker.
Thanks for any clarification that you can provide.
Vince Lackner
Comments
Comment #1
hutch commentedEnsure that you have enabled geocoding and have the zipcodes table setup done. Using Location module that is
Comment #2
vince@lacknergroup.com commentedThanks, Hutch. I did figure out late last night that I needed to install the GeoCode module.
I didn't have to do anything special with zip codes. Just curious, where would I do the zip code table setup?
Best,
Vince
Comment #3
ice5nake commentedLike hutch mentions, if you're using the location module you just need to configure your location module to do geocoding for your region. For example I enabled geocoding for the United States.
If you're not using the location module you probably need to use the Geocode module that VinceL mentions.
Comment #4
arski commentedworks perfectly for me too after having enabled the geolocation stuff. nice nice :)
Comment #5
johnvComment #6
sumitmadan commentedNot working after enabling GeoCode module also. I selected the country in geocoding option. Am i missing something?
Comment #7
planctus commentedNot working for me too. Don't know when it stopped working, i noticed this only recently, i've updated the module to the 6.x-2.0-beta5 but that didn't fix the problem.
I'm using a location field and geocoding options are correctly set.
Thanks,
Da.
Comment #8
sumitmadan commentedI solved this using custom code in hook_nodeapi.
Comment #9
planctus commentedSorry, forget my comment..it is woking now.
Da.
Comment #10
jkingsnorth commentedThis issue seems to have been fixed, marking as such.
Comment #12
bisw commentedThanks @sumit.. saved lot of time..:)