Hey folks,
I'm using the Geolocation add-on on a text field and I would like to filter the autocomplete suggestions to a specific country. Is there any hook or filter with the Formidable implementation of the Places autocomplete API to apply the componentRestrictions option for countries?
Cheers.
The Geo add-on has four filters, only one of them might be useful to you. Three of them are for changing the map display. One is used for setting a default location. You might try that one.
Here's how to use it:
add_filter( 'frm_geo_default_location', 'set_default_location');
function set_default_location() {
$default_location = array( 'lat' => 40.7831, 'lng' => -73.9712,);
return $default_location
}
Thanks, Victor. That doesn't solve my question, but I appreciate the help.
If all else fails, maybe you could just use the Google Maps API.
Please login or Register to submit your answer