Hi Peter,
We have added new hook to force specific API to retrieve address & GPS. It will be in next release.
Patch available at here: https://github.com/AyeCode/geodirectory/commit/89b9d7ea96686a5f389ee04b6cdfc25ea5210b33
You can use following PHP snippet to force specific API for Geocode service during import listing & insert dummy data.
/**
* Filter Geocode API used to get GPS from post address.
*/
function gd_snippet_post_gps_from_address_api( $api ) {geodir_error_log( $api, 'gd_snippet_post_gps_from_address_api', __FILE__, __LINE__ );
$api = 'google'; // google or osm
return $api;
}
add_filter( 'geodir_post_gps_from_address_api', 'gd_snippet_post_gps_from_address_api', 20, 1 );
/**
* Filter Geocode API used to get address from post GPS.
*/
function gd_snippet_post_address_from_gps_api( $api ) {geodir_error_log( $api, 'gd_snippet_post_address_from_gps_api', __FILE__, __LINE__ );
$api = 'google'; // google or osm
return $api;
}
add_filter( 'geodir_post_address_from_gps_api', 'gd_snippet_post_address_from_gps_api', 20, 1 );
See for more info https://github.com/AyeCode/geodirectory/issues/826#issuecomment-534458373
Regards,
Kiran