I am trying to implement geocoding to function for user profiles. Here's my current setup:

When editing a nonadmin registered user's profile I see Location section collapsed. Inside Location I can edit Location name, Street, City, State/Provinde, Postal code, Country, Latitude, Longitude. Additionally I see a GMap above Latitude and Longitude fields as I have the GMap module enabled.

When I input an address and save the profile, upon next view the latitude and longitude fields are still black. Also, the GMap doesn't point to the location specified by the address.

I would like to configure teh site to geocode the address into lat./long. either server-side once the form is submitted or in real-time using javascript when the location fields are manipulated. Glancing the at the source of teh page I didn't notice any related javascript code loaded to handle geocoding.

Here's my site configuration:

admin/settings/location
Default country selection: United States
Toggle location display: Enable the display of locations.
Province display: Display province/state code.
Use a Google Map to set latitude and longitude
Location chooser macro: [gmap]

admin/settings/location/maplinking
United States: Google Maps enabled

admin/settings/location/geocoding
United States: Google Maps enabled

admin/settings/location/geocoding/us/google
Google Maps API Key: Specified
Google Maps Geocoding Accuracy for us: Premise (building name, property name, shopping center, etc.) level accuracy

admin/settings/gmap
Google Maps API Key: Specified

admin/settings/gmap_location
User settings: User Map: Macro: [gmap |id=usermap|center=40,0|zoom=3|width=100%|height=400px]

I am not sure what I missed. Any ideas?

Comments

mizerydearia’s picture

Priority: Normal » Minor
Status: Active » Closed (duplicate)