October 21, 2019 |
By: Dave |
In: iOS Devices | iOS |
Comments Off on Distance function for sqlite |
As part of an iPhone SDK project, I have an sqlite database with a table full of geographic locations, each stored as a latitude and longitude value in degrees. I wanted to be able to perform an SQL SELECT on this table and ORDER BY each row’s distance from an arbitrary point. I’ve achieved this […]
Read More