Attached a small project calculating the distance of cities and sorting the closest to a given point in a given radius.
In reality, in the SQLite query I calculate the square of the distance because there is no square root function in SQLite.
The program uses the
Table class and needs the
ScrollView2D library.