|
|
@@ -359,14 +359,16 @@
|
|
|
|
|
|
- (void)reportLocation:(CLLocation *)location forOrder:(NSString *)orderID {
|
|
|
|
|
|
+ NSString *latLon = nil;
|
|
|
if (location) {
|
|
|
- NSString *latLon = [NSString stringWithFormat:@"%f,%f",location.coordinate.latitude,location.coordinate.longitude];
|
|
|
- dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
|
|
- [RADataProvider reportCurrentLocation:latLon forOrderID:orderID];
|
|
|
- });
|
|
|
- } else {
|
|
|
+ latLon = [NSString stringWithFormat:@"%f,%f",location.coordinate.latitude,location.coordinate.longitude];
|
|
|
|
|
|
+ } else {
|
|
|
+ latLon = @"-999,-999";
|
|
|
}
|
|
|
+ dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
|
|
+ [RADataProvider reportCurrentLocation:latLon forOrderID:orderID];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (void)reportLocationWithOrder:(NSString *)orderID {
|