Filtering searched based on your users physical location is a powerful feature for local directories. There are several steps required to offer this functionality. For starters, you must complete the following basic steps:
IMPORTANT: Your website must have an SSL certificate for this to work.
2. The following Advanced Settings must then be updated to these values:
- User Geocoding Method: HTML5
- Geo-Code Visitors: 1
- Display Visitor's Location: 1
This will prompt your visitors to allow your website to locate their physical location. If permission is granted, you will obtain their latitude and longitude. Your website will remember this for the entire browser session.
This will provide you with the foundation needed to filter search results based on your visitors physical location.
Enable / Disable Setting
To enable or disable this functionality you must go to >> SETTINGS >> DESIGN SETTINGS >> SEARCH RESULTS DESIGN tab
On the Setting Detect Visitor Locations you can choose to Enable or Disable: