Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android max limit for geofences?

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?

like image 446
joschplusa Avatar asked Sep 20 '13 15:09

joschplusa


People also ask

How big is a geofence?

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.

How are geofences calculated?

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.

Is geofencing API free?

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.

How accurate is Google geofencing?

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.


1 Answers

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

like image 165
tyczj Avatar answered Oct 11 '22 09:10

tyczj