I’m saving latitude and longitude values in a MySQL. Right now I’m saving them as Varchar, but I wonder whether I’ll be able to make queries for example to get Rows with latitude and longitude in a range so I can get results in a certain radio.
Should I use a different column type to store them?
Depending on the precision your application requires, you would select from either Fixed-Point Types (Exact Value) or Floating-Point Types (Approximate Value).