I'm starting with the geo fencing API of google play services. I think I understood the general concept but I couldn't find out if there's a limit for geofences. I give my list of geofences to the the location client and he handles the rest. But how many geofences can I pass to the location client? As many as I want?
The size of a Geo-Fence refers to its radius. The minimum radius is 1.6 kilometers (or one mile), and the maximum radius is 160 kilometers (or 100 miles). However, it is not recommended to use an excessively wide radius.
To do this, just calculate the distance between the center of the circle and your location (longitude, latitude). If the distance is smaller than your circle radius, then you're inside the geofence, otherwise you're outside the geofence.
So, why shouldn't we use the Geofencing API? you might ask. The API uses a pay-as-you-go pricing model. After you consume all the initial free requests, the charges are 5.00 USD per 1000 hits.
App developers can use native Android and iOS location detection to power their location-based experiences and engagement. However, native geofencing technology can only deliver accuracy of around 100-200 meters. For context, that's about the length of a soccer field.
You get 100 geofences per app per device
You can have multiple active geofences, with a limit of 100 per device user. For each geofence, you can ask Location Services to send you entrance and exit events, or you can specify a duration within the geofence area to wait, or dwell, before triggering an event. You can limit the duration of any geofence by specifying an expiration duration in milliseconds. After the geofence expires, Location Services automatically removes it.
https://developer.android.com/training/location/geofencing.html
they tell you in the google IO session called Beyond the Blue Dot: New Features in Android Location
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With