【问题标题】:how to setup mkmapview to display pois at 100 meters range from my current location?如何设置 mkmapview 以显示距我当前位置 100 米范围内的 pois?
【发布时间】:2009-12-18 22:18:57
【问题描述】:

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

【问题讨论】:

    标签: location mkmapview point-of-interest


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-16
      • 2013-11-13
      相关资源
      最近更新 更多