Objective c 在特定位置的地图上搜索特定方面

Objective c 在特定位置的地图上搜索特定方面,objective-c,macos,mapkit,Objective C,Macos,Mapkit,我将如何编写一个与苹果地图工具包交互的函数,以便在给定特定位置(纬度/经度)时,程序将搜索该地图上5-10公里半径范围内的某些方面 例如,获取给定的机场地理位置,搜索机场半径范围内的跑道,然后放置标记跑道的矢量,用于查看目的和跑道的特定位置 我将如何编写类似的程序。仅阅读示例代码,以下是您需要的: // confine the map search area to the user's current location MKCoordinateRegion newRegion; newRegio

我将如何编写一个与苹果地图工具包交互的函数,以便在给定特定位置(纬度/经度)时,程序将搜索该地图上5-10公里半径范围内的某些方面

例如,获取给定的机场地理位置,搜索机场半径范围内的跑道,然后放置标记跑道的矢量,用于查看目的和跑道的特定位置


我将如何编写类似的程序。

仅阅读示例代码,以下是您需要的:

// confine the map search area to the user's current location
MKCoordinateRegion newRegion;
newRegion.center.latitude = self.userLocation.latitude;
newRegion.center.longitude = self.userLocation.longitude;

// setup the area spanned by the map region:
// we use the delta values to indicate the desired zoom level of the map,
//      (smaller delta values corresponding to a higher zoom level)
//
newRegion.span.latitudeDelta = 0.112872;
newRegion.span.longitudeDelta = 0.109863;
还有