Hello! I'm trying to create a computed field aggregating a text field (street name, number) and a taxonomy term (hierarchy).
This seems the only way to geocode an address in drupal , avoiding using the "location" module, that it doesen't really fit for countries like italy, for example..
I'm very new to drupal, so, i really have no clue on what to do...
I read somewere, that to output the value of the taxonomy , i will have first to get the id, then to convert the value into a readable name .
I would also like to show all the yeararchy level (ex : province - city etc). not just the latest term of the taxonomy.
Then , obviosly, adding the text field, into the same field..
Any suggestion on how to do these things, would be really appreciated!
Comments
Comment #1
dwalker51 commentedtrying to do the same....
I can get the computed field showing the street ( a text field) + the Region, Province, Comuna ( A hierachical taxonomy), however I then run into a problem with geocode, see: http://drupal.org/node/624800
To at least get you to where I am....
I have a computed field called dirrecion, In it:
I am just outputing the street (calle) and the first and third term in the taxonomy Hierarchy (Region, Comuna)
Computed Code (PHP)
Display Code (PHP)
This at least will output your text and taxonomy fields, geocoding it is another issue....Hope this helps....will maybe see about other solutions like addressfield
Comment #2
dwalker51 commentedI decided due to deadlines to go with addressfield....but there seems to be some movement here with respect to geocoding computed fields http://drupal.org/node/1679926