【发布时间】:2010-10-17 11:22:54
【问题描述】:
我正在尝试在 iPhone 上查找城市的经纬度。假设用户正在搜索伦敦,我会调用一些函数来检索伦敦的经度和纬度。我在网上查看过,发现您可以使用 Google API,但必须有一个 Apple 函数来处理这个问题?
我遇到了 MKReverseGeocoder,它需要经纬度,并告诉你你在哪个城市附近。例如
// reverse geocode the user location
geocoder = [[[MKReverseGeocoder alloc] initWithCoordinate:mapView.userLocation.location.coordinate] autorelease];
如果它可以逆转这个过程,一定有某种形式的 MKGeocoder 类?
【问题讨论】:
标签: iphone geolocation cllocation