Skip Navigation

[Résolu] Distance Filtering Of Posts With Maps Plugin

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

When I created the view ive added a filter for radius search by location field. However this brings in posts which are not within the search radius.

Solution:

Please follow our document to setup the Google Map API key, and test again

https://toolset.com/course-lesson/creating-a-maps-api-key/

Relevant Documentation:

This support ticket is created Il y a 3 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Jo4nny8 Il y a 3 années et 6 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1876351

Tell us what you are trying to do?
Im trying to create a filter for Job posts via distance from a location.

What is the link to your site?
lien caché

Each of the job posts has an address field for the location. When I created the view ive added a filter for radius search by location field. However this brings in posts which are not within the search radius. For example, I put a location of Broomfields UK and it shows posts from Southampton which is 150 miles away?

Any ideas where were going wrong

#1876595

Hello,

The problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, and test again

3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

4) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1878189

Hi

Thanks for the reply. Unfortunately this hasn't worked and ill need someone to take a look please.

Ive created a test site on my server. Do you need a duplicate version still or will admin access to this suffice?

#1878805

I have enabled the private message box again, you can provide the test site and duplicator package link, thanks

#1879913
Gloucestershire.JPG

Thanks for the details, I can login your website, please check these:
Dashboard-> Toolset-> Settings-> Maps
in section "Google Map API key", click button "Check API", you should be able to see the error message:
REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.

Please follow our document to setup the Google Map API key, and test again
https://toolset.com/course-lesson/creating-a-maps-api-key/

I have tried with my own API key in your website, it works fine, for example search with "Gloucestershire", I get only one item, see my screenshot Gloucestershire.JPG

#1880873

My issue is resolved now. Thank you!

I altered the api credentials and now it works

Ce ticket est maintenant fermé. Si vous êtes un client de Toolset et que vous avez besoin d'aide, veuillez ouvrir un nouveau ticket d'assistance