Tag: geocode

如何使用Parsefind当前用户位置附近的用户?

我的应用程序需要find用户的当前位置,我已经完成了。 然后它需要find当前用户位置附近的其他用户。 我正在使用这个parsing。 到目前为止,这是我必须得到用户的当前位置,它的工作到目前为止。我不明白如何find当前用户的位置附近的其他用户。 有人可以帮我吗? 我真的很感激。 if ([PFUser currentUser] && [PFFacebookUtils isLinkedWithUser:[PFUser currentUser]]) { [self updateUserInformation]; [PFGeoPoint geoPointForCurrentLocationInBackground:^(PFGeoPoint *geoPoint, NSError *error) { if (!error) { NSLog(@"User is currently at %f, %f", geoPoint.latitude, geoPoint.longitude); [[PFUser currentUser] setObject:geoPoint forKey:@"currentLocation"]; [[PFUser currentUser] saveInBackground]; } else { NSLog(@"%@", error); return; } }];