, , , Android Bluetooth LE. , Android.
iOS CoreLocation, iBeacon Android - , .
Android iBeacon , iOS CoreLocation, iOS CoreLocation . , . Android iBeacon 10- 80- (, 10- .) :
protected static double calculateAccuracy(int txPower, double rssi) {
if (rssi == 0) {
return -1.0;
}
double ratio = rssi*1.0/txPower;
if (ratio < 1.0) {
return Math.pow(ratio,10);
}
else {
double accuracy = (0.89976)*Math.pow(ratio,7.7095) + 0.111;
return accuracy;
}
}
Android API Bluetooth LE . iOS . iBeacon Android bluetooth 1,1 , , 1,1 . , iBeacon, 30 ( iOS-, iBeacons), iOS 300 10 , Android 9. , Android. , .
Android, , . , . , .