This issue is for thinking out loud at this stage.

I'm planning to see how feasible it is to make an upgrade path out of location and into the next generation of geo modules.

The idea is to focus developer time on as small an area as possible, and seeing as there are other modules out there now that do a better job of doing what location is trying to do, it would be best to focus our efforts there.
For more info see #1346746-26: Roadmap for next gen location (7.x-5.x)

My main aim is to have something that can migrate lat-lon coords from location into geofield.

It would be good to also be able to migrate address data to addressfield but that will need some investigation.

When I work on this it will likely be in a sandbox and then a project of its own, not part of the location module, but I'm adding here for reference.

Comments

choster’s picture

I see that Pol has a sandbox project for migrating Location CCK fields to Geofields.

http://drupal.org/sandbox/Pol/1351736

Browsing some of the pther "next generation geo" threads, though, there doesn't seem to be much attention paid to migration.

http://drupal.org/node/1093392
http://groups.drupal.org/node/137049

leistiko_texvet’s picture

Issue summary: View changes

FYI – One intrepid soul succeeded by"

  1. Updating content with Addressfield and Geofield
  2. Setting Geofield to code from Addressfield
  3. Using Views Data Export to export the data
  4. Using Feeds to spit the data into Addressfield.

Source: https://drupal.stackexchange.com/questions/185516/how-to-convert-locatio...

leistiko_texvet’s picture

Follow up:

  • I'm in the process of doing (pretty much) exactly what I described in the Oct 16, 2017 post.
  • I've installed Geofield and added Geofield lat/lon fields to one of our content types (events).
  • I've created a view that exports the nid, Location lat, and Location lon as a CSV.
  • I've created a Feeds Importer that updates the Geofield lat and Geofield lon fields of event nodes whose nid matches a row in the CSV with the corresponding lat and lon.

This would be a perfect answer, except that when I run the feeds importer, the body, summary, and some other fields (including the date/time field for when each event starts and ends) get blanked out on the admin "edit node" page. If you're curious to see how that resolves, I've created an issue for that at: https://www.drupal.org/project/feeds/issues/3023511