0
我使用Google反向地理編碼獲取用戶的當前位置。我的代碼是這樣的:使用反向地理編碼(Google API)提取街道名稱
NSString* StrCurrentLongitude=[NSString stringWithFormat: @"%f", currentLocation.coordinate.longitude]; // string value
NSString* StrCurrentLatitude=[NSString stringWithFormat: @"%f", currentLocation.coordinate.latitude];
[NSURL URLWithString:[NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/geocode/json?latlng=%@,%@&sensor=true_or_false",StrCurrentLatitude,StrCurrentLongitude]];
現在我該如何繼續從這裏獲取用戶的當前位置?
是NSURLResponse或NSData的是,我會接受JSON文件?以及如何提取地址(或解析?)? – HusseinB
哦,我可以使用的那個在請求和completionHandler之間有一個「隊列」,我把它放在什麼值? – HusseinB
[NSOperationQueue mainQueue] - NSData有JSON –