Tell us what you are trying to do?
Hi there I'm trying to limit the results displayed by the distance search to just the UK. but wasn't sure if it was possible or how to go about it.
Is there any documentation that you are following?
hidden link
Is there a similar example that we can see?
https://stackoverflow.com/questions/8282026/how-to-limit-google-autocomplete-results-to-city-and-country-only
What is the link to your site?
hidden link
Hi Matthew,
Thank you for contacting us and I'll be happy to assist.
To make sure that the results in the distance search field are restricted to "UK" only, you can include the following code in your View's "JS editor" tab, under the "Loop Editor" section:
jQuery(".js-toolset-maps-distance-center").geocomplete({country: 'UK',type: []});
Note: If you'd like this feature to be available in the Toolset plugin, out-of-the-box, you're welcome to submit this as a feature request through the form at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
I hope this helps.
regards,
Waqar
My issue is resolved now. Thank you!
Thanks!
This is nice and easy solution.
BTW here are country codes that can be used in place of "UK"
hidden link