I am developing an app where it would show "events" that is within a 50 meter radius of the current location of the user. I would get these events from an online database. These events contain a LatLng and an address from the DB.
I already implemented location updates.
My question is that what approach would be better?
One approach:
I draw circle on the current location using addCircle
. Then remove and redraw these circles when the current location changes.
The hard part about this is how would I get the locations or lat/lang within 50 meters.
I would then query my DB and return my events.
Another approach I've considered is Geofences. I am still studying it right now. Maybe I would draw a geofence around my current location and update it as needed.