0

我的应用程序中有 200 个 pois。我想在地图视图中显示 100 米范围内离用户最近的 pois。这怎么可能?

4

1 回答 1

1

遍历注释集合,并使用 CLLocation 的 distanceFromLocation 方法确定它们与设备位置的距离。如果它们在范围内,只需添加它们。

于 2010-05-13T06:44:35.907 回答