I'm trying to create an app which will allow me to measure the distance between two iPhones using the data from GPS. I have already achieved to find the location but I don't know how to make them exchange this data so as to evaluate the distance between them. Could you please help me to solve the problem? Thanks in advance.
Touch and hold anywhere on the map that isn't a place's name or icon. A red pin appears. Select Measure distance .
The 'WifiNanScan app lets you measure distance with a precision of about one metre with phones up to 15 metres apart. Google has launched a new WifiNanScan app for developers on the Google Play store. This app measures distance between two smartphones using the Wi-Fi Aware protocol.
iPhone automatically detects the dimensions of rectangular objects, or you can manually set the start and end points of a measurement. For best results, use Measure on well-defined objects located 0.5 to 3 meters (2 to 10 feet) from iPhone.
With the received signal strength, you measure the distance of Bluetooth A from B by using the Bluetooth signal strength that A receives from B. The a is a factor to offset the maximum received signal.
I believe that the best way to do it is setting up a server (e.g. using Google App Engine) and make the phones connect to it to exchange their position.
You can use " getDistanceFrom " function in " CLLocation "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With