iphone iOS mapkit, filter a list of points(Longitude, Latitude) by Nearest -


i have list of points of interest in plist file containing point info + longitude & latitude.

i wonder how show in mapview nearest points me according radius ?

example : radius = 2km --> show top 20 nearest pins location

calculate distance between position , points sort , filter results.

to calculate distance use distancefromlocation


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -