Skip Navigation

[Resolved] Use HTML5's geolocation API to display results that are closes to the visitor

This support ticket is created 4 years, 5 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 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1910029

Tell us what you are trying to do?

We're using Toolset's 3.4.5.

Is it possible to use HTML5's geolocation API to display results that are closest to the visitor? And if the visitor does not give the browser permission to transmit geolocation information, then maybe use the user's IP address as a fallback?

#1910303

Hello,

Toolset Maps plugin does support GEO location, and can filter the results by distance range, see our document:
https://toolset.com/2018/02/toolset-maps-features-in-reference-sites-viewing-geolocation-and-filtering-by-distance-in-action/

In order to use those features, you need to enable SSL in your website.