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
Post a Comment