An example by Nicolas Flacco for triangulation with beacons using the new Swift language. Available on GitHub.