I am setting up a local business directory. Each business will have general info about the business, the address, and a link to a map. I want to make it so that the teaser has a link to the map pops up in a new window but the full node has the map embedded in it.
Because I want users to be able to enter businesses, I want to make the entry form as simple as possible. I would like them to enter the street address and choose the city from a drop down and have the state, zip, latitude, and longitude all filled in automatically.
As a first step towards this, I installed the location and gmap modules and set them up to work with my CCK directory listing type. This got me the address info added to my node from location and there was also a map and lat/long fields. But entering in the address didn't make it fill in the lat/long and there was no way to get the map to not center on the Atlantic Ocean. I did some searching and found I need to disable the location module and use something built into gmap instead. This got me a nice interface for getting the lat/long with the map centered correctly and the lat/long filled in automatically. It's almost perfect except that the address is now just one text box that doesn't get saved. Argh!
So my first question is, has anyone figured out a way to have the location module's fields fill in the lat/long fields? If I can get past that, then I'll need to figure out how to get the state/zip to fill in automatically.