Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CLLocation *current = [[CLLocation alloc] initWithLatitude:lat longitude:long];
- CLLocation *target = ...
- CLLocationDistance meters = [current distanceFromLocation:target];
- if (meters<radius) { /* you are closer than radius meters */ }
Add Comment
Please, Sign In to add comment