I have a list of lat/longs that represent the places I want to show on the Google Maps. How can I check which of these places are near my current location. Something like Near Me functionality that we generally see. I am using Google Maps SDK for iOS. Hope the question is clear now?
Asked
Active
Viewed 434 times
-1
-
Question should be clear ? – Kumar KL May 08 '13 at 10:20
-
"" You(your) have "", what this mean ? . who needs to join then ha>? – Kumar KL May 09 '13 at 04:39
-
@KumarKl Revenge by -1?? – JDev May 09 '13 at 12:38
-
Point Noted . Wait and Watch...... – JDev May 09 '13 at 12:49
-
Ha ha... Its k bro leave . I will put back your reputation. – Kumar KL May 09 '13 at 12:51
1 Answers
2
Make sure that you have imported CoreLocation Framework
CLLocation *locA = [[CLLocation alloc] initWithLatitude:lat1 longitude:long1];
CLLocation *locB = [[CLLocation alloc] initWithLatitude:lat2 longitude:long2];
CLLocationDistance distance = [locA distanceFromLocation:locB];
//Distance in Meters

Ushan87
- 1,608
- 8
- 15