How accurately should I store latitude and longitude?

后端 未结 7 512
囚心锁ツ
囚心锁ツ 2020-11-29 15:22

I was reading this question here:

What datatype to use when storing latitude and longitude data in SQL databases?

And it seems the general consensus is that

相关标签:
7条回答
  • 2020-11-29 16:26
    +----------------+-------------+
    |    Decimals    |  Precision  |
    +----------------+-------------+
    |    5           |  1m         |
    |    4           |  11m        |
    |    3           |  111m       |
    +----------------+-------------+
    

    If you want 50ft (15m) precision go for 4 digits. So decimal(9,6)

    0 讨论(0)
提交回复
热议问题