Friends, please tell me how to implement the display of labels on the map within a given area?
For example, a user indicates that he needs to see placemarks on the map within a radius of 10 kilometers from his current location …? How to implement this?
I am making an application that will show a list of users at a distance of 5/10 kilometers from the user.
Those. the logic is like this:
the user is authorized in the application, and we get his current coordinates, which we write to the database.
our user has the ability to select other users at some distance from himself (for this we use his current location + a list of coordinates of other users.
Okay, for that I would use the Haversine formula. It’s a little easier but potentially a little slower to do this using a formula in Google Sheets. I prefer to code it within Thunkable but it’s quite complex to set up the blocks. I’ve done this for an app that finds the closest air quality sensor to the user.
This topic includes some interesting suggestions and also a link to info about the Haversine formula in my post within that topic: