I enter the address information and save the node, but the geocoding info doesn't get saved. Any help appreciated.
Thanks

Comments

jjjames’s picture

Just to clarify, the address information gets saved, but the Lat. and Long. are still blank.
thx

danielnolde’s picture

Which geocoder are you using? (Have a look in the location settings).
If it's Google: Have you set the Google API Key correctly matching your domain name ("localhost" or "site.dev.server" will be treated as a different domain needing a different key, afaik)? If not, try to do it via the location setting interface (not working with the dev-version i'm using currently), or - if you user the gmap.module - set the key in the gmap module settings page, or set it manually in the variables table: INSERT INTO variable (name, value) VALUES ('location_geocode_google_apikey', 'YOUR_GOOGLE_API_KEY');

tomywu’s picture

Hi, I got a similar problem on this. I have set the google API key. But whenever I enter the address information for a content type (without directly pointing it in the google map), I got a (0, 0) lag. & long.

Please help.

jjjames’s picture

This has been fixed with the official 6x 3 release!

tomywu’s picture

Thanks superjames.
I still can't get the proper lag and long. I am testing my application in localhost (google API key of localhost).
And I am entering address in Hong Kong. Do you think it will affect the result?

tomywu’s picture

Oh, I found what is casuing the problem. I have enabled the GMAP module and enable the checkbox in location configuration "Use a Google Map to set latitude and longitude". So when i typed in the address but not the position in google map, the undefined google map overwrite the geocoding result.....

Anyone got any idea if I would like user to input directly in google map OR input the address directly?

Thanks.

pkej’s picture

Version: 6.x-3.0-rc2 » 6.x-3.0
Component: Code » User interface

#6 I have both geocode and "Use a Google Map to set latitude and longitude" set. The problem is that the "Quick geocode" field is just a text, I can't get it to extract the values in the location form and geocode it.

I can enter values into the location form and submit, and then edit again to see if it geocoded correctly, but that is a cumbersome way to work this. It would have been nice to be able to have a link to do the geocoding at once and see the result in the form before submitting.

yesct’s picture

Title: Geocoding Not Working » Geocoding Not Working - user interface weirdness when both GMAP and "Use a Google Map to set lat long" is enabled
Status: Active » Postponed
Issue tags: +location geo-coding

If I follow, it looks like this works ok if you only have one or the other enabled, and only a problem if you have both enabled.

this is related to #132541: refactor google geocoding

I'll mark this postponed until someone has the time to improve this user interface bug. If someone wants to create a patch to implement this, please do. (use the latest versions when trying to test this or create a patch)

yesct’s picture

Status: Postponed » Postponed (maintainer needs more info)

Please check to see if this is still an issue in the latest official release or in the newest dev. If it is fixed, please close this issue, if it is still a problem, please write a new detailed summary. Thanks.

carn1x’s picture

I'm still having this issue with the dev snapshot from 2011-02-25. I've also tried both with and without the GMap Location Picker enabled (I would prefer with of course).

I would prefer to test this on my localhost to get it working, will Geocoding definitely not work without a valid API Key or should it still function despite the API Key warning?

I have tried this with both Hong Kong myself and the US since I assume that would be as well supported as any, but no difference.

Am I right in assuming that the entire geocoding string is sent as a single string of text (therefore there is no strict requirements to make sure that "Los Angeles" is entered into the City and not the Street) ?

EDIT:

After digging around I can see that the correct lat/long values are being acquired and saved properly but for some reason they aren't outputting on my GMap correctly, although this might not be a Location module issue, I'll look further.

I notice that an entry or change in the Location Name field is not enough to instigate a geocode lookup. Since I was hoping to dump a single address string I guess I'll just use the Street field instead.

EDIT 2:

Ok looks like I'm having issues with being able to view Maps for unpublished nodes, in that the coordinates and markers are not exported to as Javascript settings. So I just end up with my default map coordinates as defined in my GMap Location settings macro with no markers. Is this a known issue? I assume this could be a GMap issue instead so I'll post over there as well

legolasbo’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Closing old D6 issues as D6 is end of life

legolasbo’s picture

Closing old D6 issues as D6 is end of life