Closed (works as designed)
Project:
Geocode
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2009 at 20:47 UTC
Updated:
7 Dec 2009 at 16:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
that0n3guy commentedAND/OR... just integrate with address module: http://drupal.org/project/addresses
Comment #2
that0n3guy commentedOk... so just realized what the text field is for... it can output data (city/state/etc...) from separate field.
This should be able to help sort nodes with views except.... its not working. Maybe I'm being stupid.
Here is what I have:
Content type with 3 cck fields - http://drupal.org/files/content_type.png
-hydrant_address - just a plain text field
-city - text field - geocoded field from hydrant address - http://drupal.org/files/city_field.png
-map - Geospatial data - geocoded from field from hydrant address - http://drupal.org/files/map_field.png
The result... the 'map' field works good, but the 'city' text field does not: http://drupal.org/files/output_no_city.png
here are my display settings: http://drupal.org/files/issues/content_type_display.png ... I tried it set to plain text instead of default.
Also, I'm not getting any info in views at these fields...
I can get this map to show nicely with the openlayers module. Am I being crazy... or is this the way its supposed to work.
p.s. I am using cvs head from today 8-21-09
Comment #3
gagarine commentedNow geocode try to "localize" each text field selected as "localisable" in the geocode widget but don't concatenate any fields. The stored value are from the first field with a return from googleAPI.
Would be realy cool to have an interface like that:
------
#Field Country
geocodable [x]
Is a : [country (concatenated with the oder fields)]
Geocode handler : [google api]
Return value : [point]
#Field City
geocodable [x]
Is a : [city (concatenated with the oder fields)]
Geocode handler : [google api]
Return value : [point]
#Field Addresse
geocodable [x]
Is a : [addresse (concatenated with the oder fields)]
Geocode handler : [google api]
Return value : [point]
------
Where "Is a : [xxxxx]" is a drop box with the choices "adresse, city, country, npa, ..." and "free format"
At least it would be better to concatenate all fields..
Comment #4
gagarine commentedA quick&dirty "solution":
- create a textarea
- hid this textarea
- add the value from the others fields with JS in the textarea (!)
The JS if that's can help some poeple
Comment #5
gagarine commentedMmmh i try with http://drupal.org/project/computed_field but that's don't work :/ (i add computed as a type handlable by geocode and return a value with "presave" on computed without success)
Comment #6
allie mickaWhy not use the Postal module? Geocode has built-in support for that.
Comment #7
gagarine commentedPostal is not stable enough when I start the project and with usage statistic at 0 I have no enough guaranty if this project continue or not so I have preferred standard CCK fields instead of postal.
Anyway everything work now so I can publish the website in 1 or 2 weeks, I hop this is a good example of what we can do with geo :). I promises you also some documentations for end-user I do that this month certainly.
I will try postal soon and report some bugs..
EDIT: But it's hard to change this, I'm sure in other situations it would be cool to take data for more than one field.
Comment #8
muschpusch commentedPostal is nice but doesn't support any form of bulk import (i checked feedApi, node import and feeds). When it's not possible to use a combination of different CCK fields for geocode there are no possibilities to bulk import data.