what should be the data type of latitudes and longitudes in general
+2
A:
In MySQL
, it should be Point
, so that you can run efficient SPATIAL
queries.
Quassnoi
2009-07-15 12:40:46
Could you please link to any documentation about this data type? Some googling seems to confirm its existence, but I can't find it in the official docs. Thanks!
deceze
2009-07-15 12:57:21
@deceze: first Google result for `mysql point` yields this: http://dev.mysql.com/doc/refman/5.0/en/gis-class-point.html
Quassnoi
2009-07-15 13:16:17
Weird. I guess I was googling for "point data type mysql" or something to that extend. A search for "point" on the MySQL site only yielded references to "floating-point"...
deceze
2009-07-16 02:28:45
WTF should previous comment mean? :mad: I looked at some english dictionaries, but words like "y", "u" and "r" seem have no meaning.Sorry, english is not my language.
Arvo
2009-07-15 13:00:15
Is "WTF" part of your language? If u know what "WTF" means - u should know what "y" and "u" mean.
Jim Evans
2009-07-15 13:19:44
A:
Depends on the language/DB you are using. In general, its preferable to have it as float, in case of programming language. and NUMBER(x,y) in case of sqlplus.
Roopesh Majeti
2009-07-15 12:45:29
A:
look i have implemented google maps in my website. I've used blob for latitude and longitudes(just to be on the safer side)
ROHAN CHAVAN
2009-07-15 12:48:48
Using BLOBs to store Geographical locations is totally unnecessary. The precision of a Geographic location is only 6 digits Lat, 6 digits Long
TreeUK
2009-10-23 22:32:19