John Chandler
Member
Posted 11 months ago #
I have a custom post type with 4000 existing records and a meta_key with address data in it. When I individually update one of the posts, it automatically discovers the address and maps it. But I've not found a way to have it map multiple posts at once. (I've even tried a mass edit in the Posts screen of the dashboard.) Is there anyway to automate the plugin to review and map the existing posts?
http://wordpress.org/extend/plugins/geo-mashup/
I haven't coded this yet, but it would be a matter of calling GeoMashupDB::copy_from_geodata() for each post. Timing can be tricky - you have to make sure you don't violate API terms for geocoding requests. There's some code in GeoMashupDB::bulk_reverse_geocode() that attempts to manage that.
Dylan I think I have the same question. I have converted all my address custom fields to = geo_address.
I would like it to automatically now generate the Geo Lat & Long.
Is this at all possible now?
If you have a conversion process the way to do it would be to set Geo Mashup's "Geocode Custom Field" to geo_address before converting. Then when that field is saved for a post, Geo Mashup will try to geocode it.