I'm working with map data, and the Latitude/Longitude
extends to 8 decimal places. For example:
Latitude 40.71727401
Longitude -74.00898606
I saw in the Google document which uses:
lat FLOAT( 10, 6 ) NOT NULL,
lng FLOAT( 10, 6 ) NOT NULL
however, their decimal places only go to 6.
Should I use FLOAT(10, 8)
or is there another method to consider for storing this data so it's precise. It will be used with map calculations. Thanks!
float
type - that only has 7 digits of precision. You need at least 9. You do not need 10 - the docs for some strange reason count the minus sign as a digit. Do either:double(9,6)
ordecimal(9,6)
. – ArielFLOAT
distinguishes two items 1.7m (5.6ft) apart. All of those are ludicrously excessive for "map" applications! – Rick James