Is it possible to convert PFGeoPoint from Parse to CLLocation?
The reason is because I'm trying to get place names from PFGeoPoint like this:
CLGeocoder *geocoder; CLPlacemark *placemark; PFGeoPoint *point = [object objectForKey:@"location"]; [geocoder reverseGeocodeLocation:point completionHandler:^(NSArray *placemarks, NSError *error) { NSLog(@"Found placemarks: %@, error: %@", placemarks, error); if (error == nil && [placemarks count] > 0) { placemark = [placemarks lastObject]; NSLog(@"%@", placemarks); } }];
The error I am getting is obviously:
Incompatiable pointer types sending 'PFGeoPoint *' to parameter of type 'CLLocation *'
source share