是否可以利用 Apple 的地点信息,甚至可以使用 MapKit 参考?
在Location Awareness Programming Guide上没有找到任何东西。尝试使用 MKPlacemark 匹配地址详细信息,例如
MKPlacemark* placeMark = [[MKPlacemark alloc] initWithCoordinate:coordinate addressDictionary:@{
(NSString *)kABPersonAddressStreetKey:@"113 Buccleuch Street",
(NSString *)kABPersonAddressCityKey:@"Edinburgh",
(NSString *)kABPersonAddressStateKey:@"UK",
(NSString *)kABPersonAddressZIPKey:@"EH8 9",
(NSString *)kABPersonAddressCountryKey:@"United Kingdom",
(NSString *)kABPersonAddressCountryCodeKey:@"GB",
}];
MKMapItem* mapItem = [[MKMapItem alloc] initWithPlacemark:placeMark];
mapItem.name = @"Coyaba";
但似乎纬度/经度优先于地址。