是否可以利用Apple的地點信息,甚至可以使用MapKit來引用它?您可以使用Mapkit在Apple Maps中引用地點嗎?
在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";
但似乎lat/long優先於地址。