Quantcast
Viewing all articles
Browse latest Browse all 37

Answer by Sargis for How we can get distance between two places's coordinate in ios

You need to use these coordinates to get the CLLocations for the respective coordinates using the following line of code

CLLocation *location1 = [[CLLocation alloc] initWithLatitude:lat1 longitude:long1];CLLocation *location2 = [[CLLocation alloc] initWithLatitude:lat2 longitude:long2];NSLog(@"Distance i meters: %f", [location1 distanceFromLocation:location2]);

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>