0





85

Advertisement

How can i get a numeric distance from ibeacon:

 NSString *proximity;
switch (beacon.proximity) {
    case CLProximityNear:
        proximity = @"Near";
        break;
    case CLProximityImmediate:
        proximity = @"Immediate";
        break;
    case CLProximityFar:
        proximity = @"Far";
        break;
    case CLProximityUnknown:
    default:
        proximity = @"Unknown";
        break;
}

I want to have values like 2.4m

Question author Nabil-el | Source

Advertisement


0


There's a great answer here on Stack Overflow: What are the nominal distances for iBeacon. The simple answer is, there is no numerical value you can easily extrapolate. The longer answer is to get a numerical value you'd either need multiple iBeacons, or a lot of luck to be able to generate a figure that's accurate.

Answer author Nicholas-smith