I am trying to create and app with the premise of showing a certain user to a place with a specified " willing to travel distance"
Basically, when clicking on the place it would show Users that are within that specified distance.
New to this so sorry if this is a question already covered.
Thank you
I assume you have each user’s coordinates or addresses already entered into a column in the user table?
Is sign in required for the app?
Essentially it will need to recalculate distance against each user every time you select a location. For that to happen, a Distance column will be needed in the user table to calculate distance based on one selected place.
- I would first change the click action in your Places collection to a custom action that will first write the place coordinates to a column in the user profile.
- Then in your User table, add a Single Value column that populates that location across all user rows.
- Finally add a distance column to compare the distances between the user location and the single value column location.
With that you can add a filtered list to your you Place detail screen that only shows users within a certain distance and within the willing to travel distance.
1 Like