I've been able to batch import successfully. I set source=4 in the location table and all locations appear under the search box before I attempt to narrow down the results by the proximity search.

I've found the proximity search only works for a location after I manually follow the link to the Google Maps results for each individual location so it can catalog the actual longitude/latitude data into the database.

Is there any fix or workaround for this or am I missing something? I can't manually click each link for the 5000+ locations I have to import. It kind of defeats the purpose of a batch.

Comments

rooby’s picture

Status: Active » Fixed

If I understand correctly you have done a batch import of locations without lon/lat coordinates.
You then set the source to 4 in the database table for all these locations.
And that is where you are at.

proximity search will not work at that point because the coordinates are still not geocoded for the locations. Each location has to be loaded before geocoding will occur. SO you either need to run some code that does a node load on all the nodes for your locations (or something along those lines) or you if you want to do it without any coding at all you could install the views_bulk_operations module and using the admin_content view that it provides select all your nodes and run the "Save post" operation. You might have to add that operation to the view as it might not be in the default setup.

Please reopen this if I misunderstood your situation.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.