I have Province/City taxonomy with 5000+ terms.
I would like to add lat/long field or something and bulk update whole taxonomy so i can use it later for maps and proximity search.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI have Province/City taxonomy with 5000+ terms.
I would like to add lat/long field or something and bulk update whole taxonomy so i can use it later for maps and proximity search.
Have you looked at Geofield and Geocoder modules?
I believe you can configure the geofield as a field on your taxonomy to hold the Lat/Lng. Then, you can configure your geofield widget as Geocode from another field
.
For batch back-filling, Geocoder provides the drush command:
geocoder-backfill Geocodes all nodes that have a geocoder widget but no geodata.