Filter Based on Geolocation

Hi @cfisher440 :slight_smile: One way to do this would be to use the ‘Searchbox’ element which automatically detects the User’s ‘current geographic position’, or searches for other addresses depending on what the User types in:

Then you can set the center point of the map to be the location entered in the Searchbox:

To only show Events near that location (for example, within 50 miles), you can add a search constraint in the “Do a Search for Events” expression, which shows Events within 50 miles of the searchbox’s location:

And the repeating group below would have the same data source as the map:

If the User doesn’t allow the browser to detect their location, the searchbox will be empty and all Events will show:

Preview:

Editor:

4 Likes