开发者

how to setup mkmapview to display pois at 100 meters range from my current location?

开发者 https://www.devze.com 2022-12-14 15:07 出处:网络
i have 200 pois in my app. i want to display the nearest pois to the us开发者_开发问答er within 100 meters range in a mapview. How is this possible?Iterate over the collection of annotations, and use

i have 200 pois in my app. i want to display the nearest pois to the us开发者_开发问答er within 100 meters range in a mapview. How is this possible?


Iterate over the collection of annotations, and use the distanceFromLocation method of CLLocation to establish how far they are from the device position. If they are within range simply add them.

0

精彩评论

暂无评论...
验证码 换一张
取 消