I am developing an Iphone application in which i am using GoogleAPI to find the nearest Restrooms within 500 meters. But the thing i want to do is to find the places in sorted pattern starting from places whose distance is less from current location.
Thanks.
Assume
restroomLocationsis thecoordinatesArray,userLocationis the user current location, and that you know how to use theCoreLocationframework to get all users’ current location. The following method will help you: