Closed (duplicate)
Project:
Geolocation Field
Version:
7.x-1.x-dev
Component:
Geolocation field
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Sep 2012 at 12:39 UTC
Updated:
16 Apr 2015 at 20:41 UTC
Jump to comment: Most recent
Comments
Comment #1
derjochenmeyer commentedNote: According to #690746: Text column type doesn't reliably hold serialized variables this should be a blob field...
Comment #2
derjochenmeyer commentedStoring whatever the geocoder returns is a nice idea, but often the Information returned does not make any real sense.
Example: User sets a Marker on the map:
What do we store besides lat, lng? The first result or all results? Do we store the fact that it was a reverse (aproximate) geocoding result?
Example: User enters text information:
What do we store besides lat, lng? The first result or all results? Do we store the fact that it was a reverse geocoding result based on the users textinput? Do we store the textinput itself?
Comment #3
Sinan Erdem commentedHello Jochen,
Thank you for working on this module. It covers a big area in Drupal mapping system.
When I manually enter a point from the map, I see that an address is populated on the address textbox above map. Even storing this address as a text in a field which is accessible from views or tokens is a very good improvement. Better approach would be to store this data separated by address components (city, country etc.)
Cheers,
Sinan
Comment #4
markaspot commentedI think that google geocoding does some good job, especially on a higher zoom levels. So i would store just all information that the geocoding service provides and leave it to the application's field settings, on which level of accuracy (roof-top, city, national) your module will start showing map and geocoding.
My approach will be to store the exact output of your module's
field_geo[und][0][address][field]in an additional address-field and to validate this before saving the node. I need an address that makes sense, means i have to validate zip and city on the server side. Thanks for this module, helped me a lot!Comment #5
Funksmaname commentedI'm desperate for same basic functionality as #3.
http://drupal.org/node/1040640#comment-4004262 supposedly does this though the patch is failing and causing errors when manually applied. No further comments on that thread mention the patch.
Any ideas??
Comment #6
Funksmaname commentedAs a workaround, I put in the following jQuery solution:
where the first # is the text field which is hidden with css (hide the field wrapper, not the field) and the second is the goelocation address field which isn't stored anywhere. When the form is submitted, the text is copied from one field to the other and then therefore saved in the db and can be included in views etc.
#field-address-as-text-add-more-wrapper {display:none}Hope this helps, while a more robust address storage method is agreed upon.
Comment #7
rliAgree with #6 for a quick solution. Thanks.
Comment #8
derjochenmeyer commentedDuplicate of #1040640: Store and display geocoded address information AND/OR address data entered by users
Comment #9
mtoscano commentedI tried to use the solution at #6, adding the code to the geolocation.js in the geolocation folder, modifying the field name to match mine and clearing cache, but it doesn't works.
Should I put that jQuery code in geolocation.js?