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 回答