gpt4 book ai didi

ios - iOS CLGeocode地址字典

转载 作者:行者123 更新时间:2023-12-01 19:12:38 26 4
gpt4 key购买 nike

我正在尝试使用CLGeocoder对地址进行反向地理编码,并希望以编程方式创建地址字典以用于与之进行地理编码。我怎样才能做到这一点?我找不到任何东西!谢谢。

最佳答案

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;

关于ios - iOS CLGeocode地址字典,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15440296/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com