Question with user location

Hello guys, I’m building a social media app and the main screen is a feed displayed trough a repeating group. When users post something, I store their location on posts table, so the post is bounded the their location in the moment they posted.

My question is, I wanna make a filter where users can select what they wanna see on their feed. I successfully did that letting the user select only posts on the same state or city, but I also would like to give them an option to filter by distance, like 10 miles away from them, 30 miles, 50 miles, etc.

What’s the best way to make it happen? Do I need any extra plugins?

This topic was automatically closed after 70 days. New replies are no longer allowed.