1

CLGeocoder を使用して住所をリバース ジオコーディングしようとしていますが、ジオコーディングに使用するアドレス ディクショナリをプログラムで作成したいと考えています。どうやってやるの?何も見つかりません!ありがとう。

4

1 に答える 1

3

CLGeocoder ヘッダー ファイルのドキュメントは、必要な情報を提供します。

// geocodeAddressDictionary:completionHandler: takes an address dictionary as defined by the AddressBook framework.
// You can obtain an address dictionary from an ABPerson by retrieving the kABPersonAddressProperty property.
// Alternately, one can be constructed using the kABPersonAddress* keys defined in <AddressBook/ABPerson.h>.

- (void)geocodeAddressDictionary:(NSDictionary *)addressDictionary completionHandler:(CLGeocodeCompletionHandler)completionHandler;
于 2013-03-15T20:23:53.900 に答える