Closed (works as designed)
Project:
Get Locations
Version:
7.x-1.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 May 2012 at 17:34 UTC
Updated:
22 May 2012 at 22:58 UTC
I have instances of the GetLocations fields being used in a user profile. The address information is only being saved if the latitude and longitude are generated using the "Geocode" button.
Is that the expected behaviour, or should the address info be saved regardless of whether it's geocoded?
Comments
Comment #1
hutch commentedAll locations must have a latitude and a longitude. You can get that either by using Google's geocoding service or by moving the marker manually to the location you want. A location lacking latitude/longitude cannot be shown on a map, which is what Getlocations is all about ;-)
Comment #2
chrisla commentedThanks, I figured as much. I was hoping to use this as a replacement for the Location fields. Unfortunately, the site owners don't feel their users will be savvy enough to complete the mapping step.
Comment #3
hutch commentedI realise that the Location module does allow 0,0 latitude/longitude and it causes all sorts of problems in searches, views etc. That is why I decided not to go down that sticky road. Also, (dare I say it) Getlocations is being maintained whereas Location has drifted into the long grass.
What you can do is tell the users what to do by using function theme_getlocations_fields_field_widget_form() from getlocations_fields.theme.inc in your theme's template.php and adding a message.
I have just commited a variety of stuff to dev, including a popup that prevents users from submitting empty Latitude/Longitude fields.
Comment #4
chrisla commentedThanks for the replies. I've added a message to users that will hopefully guide them down the right path to saving their location properly.