Closed (fixed)
Project:
Geocoder
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Nov 2011 at 19:04 UTC
Updated:
18 Mar 2012 at 07:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
hkosbab commentedComment #2
keremito commentedHi there,
Since I couldnt make the module accept taxonomy field yet, I've installed computed field module, and add the following code there;
$entity_field[0]['value'] = taxonomy_term_title(taxonomy_term_load($entity->field_yourfieldname['und'][0]['tid']));This makes computed field get the taxonomy term, so you can use that on geocoder. Bad news is, when the node is first saved, computed field is there, but geofield is empty. If you update the node, geocode is also calculated. So you need the save them twice..
Comment #3
phayes commentedThis is a pretty interesting idea. I think we could likely implement it
Comment #4
michaelfavia commentedI hacked together a quick addition that lets you geocode from the taxonomy term name field. I assume you want to use a field attached to that entity like address or something?
Patch attached. Let me know if this is what you meant and if it works for you (does for me).
Comment #5
michaelfavia commentedMark for review
Comment #6
phayes commentedDone! Thanks michaelfavia!