I have a Core Data database with latitude and longitude properties. Is there a way to use Core Location\'s getDistanceFrom: method to find the five nearest loca
The following example is almost what you are looking for.
It uses a SQLite function to calculate the distance in the ORDER BY clause (Haversine formula).
Problem is that this example does not use Core-Data, but the SQLite API directly.