Forum Academy Marketplace Showcase Pricing Features

Please help me add a distance constraint between two data types in a repeating group

Hey everyone!

I am working on a project where a user matches with another user. These potential matches are displayed through a repeating group. The problem I am struggling with is how to add a constraint to the repeating group so that these potential matches are located less than or equal to 25 miles away from the current user (who is the one looking to click the potential match)

I have created a video quick video below to explain the problem. Please help if you know how to do this!

Hello, @kryptoluna1234
I have done a similar thing so I think I can help you.

1.Create a address field in user, make sure it’s set as geographical address type.
2. Ask your users to enter their address in a searchbox input set to geographical address and save it to the step 1 created address field.
3. In repeating group> search for users> where address is within 25 miles.

Done :sunglasses:

Make sure you enter all maps API keys required for this functionality.

Thank you @siddharth!!

This makes much more sense. I am going to try this when I get to my computer and let you know how it works. Thanks

1 Like