Skip Navigation

[Resolved] Searching with distance parameter only shows immediate area

This support ticket is created 6 years, 2 months ago. 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.

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)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1150081

I am trying to: Search by distance around a certain city

Link to a page where the issue can be seen: hidden link

I expected to see: When I search within 100 miles from San Francisco, I expect to see all store locations within a 100 mile radius of SF.

Instead, I got: Only the stores in the immediate vicinity of San Francisco, results don't display in San Jose, which is within the 100 mile radius search parameter. There are locations that should be listed there, and this bug occurs around any search using the distance parameter, even when extended to thousands of miles from the search center.

#1150434

Hi,

The problem you mentioned above is abnormal, please check these:
1) You are following our document to setup the distance filter:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#filtering-markers-by-distance

2) Follow our document to setup the Google map API key:
https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/
I suggest you setup both API keys, including "second API key", see screenshot:
hidden link

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

4) If the problem still persists, please provide database dump file(ZIP file) of your website, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1154568

Thanks for the details, I am downloading your database dump file, will update here if there is anything found

#1154589
NA-Companies-Map.JPG
where-to-buy.JPG

I have tried your database in a fresh wordpress installation + the latest version of Toolset plugins
I assume the database table prefix is "wp_".

in the URL
https//SITE-URL/where-to-buy/
There isn't any map shortcode, see screenshot: where-to-buy.JPG

Then I have check the map view "NA Companies Map", it is blank, all settings are lost, see screenshot NA-Companies-Map.JPG

So your database dump file is not valid, if you need more assistance for it, please provide a test site with the same problem. I need to test and debug it in a live website.