Sending a location object
To send a location object, call:
NSError *error;
CLLocation *location = [[CLLocation alloc] initWithLatitude:50.822530000000015 longitude:0.13716299999998682];
[MedalliaMXO processLocation:location error:&error];
Pass the location object as a parameter to the processLocation
method. Use CLLocationManager
delegate methods to call processLocation
, as shown below:
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {
[MedalliaMXO processLocation:[locations firstObject]];
}