I'm looking to sort several latitudes and longitudes with an SqLite query. Can you show me the correct query to sort these example latitudes and longitudes so I can use them in trip planning?
Ascending order with the first one closest to my location. I'm assuming I will need to use a B4A library to get the latitude and longitude closest to my location first. Can you also tell me what library I would need?
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.
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.