Would it possible to be able import location information via CSV when location taxonomy is enabled with the Taxonomy menu.

As of now, with the location taxonomy sub module enabled, it just exposes location fields to be populated on the create-a-term form. It would be nice if we could import this location information along with the terms themselves as well as perform this function in bulk.

Is this possible or planned?

Comments

Stomper’s picture

See #25 from here http://drupal.org/node/734020

Other suggestions using CSV?

fehin’s picture

Hi @Stomper, did you ever find a solution to this?

Stomper’s picture

No, not yet unfornately

Louis Bob’s picture

I found a workaround solution:
a- CSV import your geographic vocabulary tree (Ex for France: Region -> Département -> Postal Code -> City)
b- Location enable your Content Type
c- Hide the location field from the form
d- Add a Hierarchical Select field to work with your geographic taxonomy terms
e- Create a Rule; on node save, trigger the action "Execute custom PHP code", and use it to populate the location field with the selected geographic taxonomy term. Example would be (without the PHP delimiters):

$node = node_load([node:nid]);
$node->field_LOCATIONFIELD['und'][] = array(
      'city' => '[node:field_GEOGRAPHICFIELD]',
      'postal_code' => "",
      'country' => 'FR',
    );
node_save($node);

If you have a better solution, I would like to hear it, especially since I find Hierarchical Select too slow!