I am a backend developer, new to implementing geofencing in React Native. I am engaged on an app that should show geofences round shops with dynamic radii, retrieved from an API. Listed here are my necessities and questions:
Rendering Geofences: I need to present geofences just for shops inside a sure distance (x km) from the consumer’s location. The radii for every retailer might be totally different and can come from an API.
Dynamic Updates: Geofences ought to seem on the consumer’s telephone when they’re close to the shops and disappear once they transfer away past a particular distance. I am contemplating an “invalidate” technique for geofences to optimize efficiency. Is that this method?
API Set off: When a consumer enters a geofenced space, I need to set off an API name with information associated to that zone.
I am open to strategies and welcome suggestions on my method. If there’s a greater method to implement this or if my concept wants enchancment, please let me know.
I’ve spoken with some builders who talked about the necessity for a background course of that updates information each few seconds. Nevertheless, I am involved that this might negatively affect efficiency. Is that this a sound concern?
I admire your steering and any insights you’ll be able to present. Thanks!