In my web/MySQL application I have something like this to get distance between two points:
6371 * acos(cos(radians(-19.83996)) * cos(radians(lat)) * cos(radi
Reply of Angel does not solve the problem for SQLite since it still includes ACOS function which does not exist in SQLite
What I have concluded after a thorough research is that one should pick a rough estimation to use in SQLite with the formula below:
Distance estimation for km:
SQRT(SQUARE((TO_LAT-FROM_LAT)*110)+
SQUARE((TO_LONG-FROM_LONG)*COS(TO_LAT)*111))