0
目前我使用下面的方法定義地理柵欄。如何在android中定義地理柵欄的矩形
Geofence geofence = new Geofence.Builder()
.setRequestId("GEOFENCE")
.setCircularRegion(latitude, longitude, radius)
.setExpirationDuration(Geofence.NEVER_EXPIRE)
.setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER | Geofence.GEOFENCE_TRANSITION_EXIT)
.build();
,現在我需要知道如何定義一個房間面積爲地理柵欄來檢測進入和離開房間。這可能嗎?
謝謝,我可以使用的最小半徑(m)是多少? – tharinduPro
看起來它大概有100米,對於你的應用來說太大了。我在瀏覽時發現了這個,它可能很有用。 https://pathsense.com/geofence –
非常感謝你..我會繼續使用PathSense SDK ..正如你所說它比Android Play Services更敏感.. – tharinduPro