douglasd3 douglasd3 - 1 year ago 106
iOS Question

How to show an iBeacon in a map

Once an app finds a beacon is possible to show both in a map (the device that found the beacon and the beacon itself)? If so how can i do that? I tried work with the distance bit with no success so far.

Answer Source

Unfortunately, you can't just find the exact location of an iBeacon once it's detected. You can only estimate its distance away from the device.

The proximity property tells you the relative distance (far, immediate, or close) that the beacon is away from the device while the accuracy property tells you how accurate that value is; so you can use proximity in combination with accuracy to get a general approximation of the distance. You could also potentially use these properties in combination with the RSSI, i.e. the received signal strength of the beacon, to further approximate the relative distance.

The device on the other hand can be mapped easily by turning on the map's showsUserLocation property.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download