Closed (outdated)
Project:
Location
Version:
6.x-3.0
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2008 at 02:39 UTC
Updated:
20 Jul 2016 at 05:41 UTC
Jump to comment: Most recent
Comments
Comment #1
jjjames commentedJust to clarify, the address information gets saved, but the Lat. and Long. are still blank.
thx
Comment #2
danielnolde commentedWhich 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');
Comment #3
tomywu commentedHi, 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.
Comment #4
jjjames commentedThis has been fixed with the official 6x 3 release!
Comment #5
tomywu commentedThanks 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?
Comment #6
tomywu commentedOh, 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.
Comment #7
pkej commented#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.
Comment #8
yesct commentedIf 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)
Comment #9
yesct commentedPlease 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.
Comment #10
carn1x commentedI'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
Comment #11
legolasboClosing old D6 issues as D6 is end of life
Comment #12
legolasboClosing old D6 issues as D6 is end of life