I have table User that contains amoung others collumns, latitude and longitude (Double). I have another table called Locations that has the same structure (latitude and longitude) (Also double type).
How can I query all the locations that are arround the user on a surface of 10 km in circle?(or a circle with diameter of 10 km).
I've seen that mysql has some Point data type but I never used it so it's very hard to understand.
For example, random coordinates: User (latitude=23.102131, longitude=-21.1231241)
Thank you!