What is the ideal data type to use when storing latitude / longitude in a MySQL database?

Codebeef picture Codebeef · Oct 1, 2008 · Viewed 315.9k times · Source

Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database?

Answer

Kirk Strauser picture Kirk Strauser · Oct 1, 2008

Use MySQL's spatial extensions with GIS.