私は現在のものを見つけlatitude
て(インターネットなしで)longitude
使用しています。GPS
reverse geocoding
今、私はインターネットなしで GPS を介してその緯度と経度を使用して実装したいと考えています。
インターネット接続で逆ジオコーディングを正常に実装しました。
これは私の実装されたコードです:-
CLGeocoder * geoCoder = [[CLGeocoder alloc] init];
[geoCoder reverseGeocodeLocation:newLocation completionHandler:^(NSArray *placemarks, NSError *error) {
NSString * location = ([placemarks count] > 0) ? [[placemarks objectAtIndex:0] locality] : @"Not Found";
CLPlacemark *placemark = [placemarks objectAtIndex:0];
NSString *MyAddress = @"";
MyAddress = [[placemark.addressDictionary objectForKey:@"FormattedAddressLines"] componentsJoinedByString:@", "];
NSLog(@"address is %@", MyAddress);
}];
これについて検索しましたが、解決策が見つかりませんでした。
これどうやってするの?
ありがとう。