Database/SQL: How to store longitude/latitude data?

后端 未结 8 1249
醉酒成梦
醉酒成梦 2020-12-07 10:03

Performance question ...

I have a database of houses that have geolocation data (longitude & latitude).

What I want to do is find the best way to store t

8条回答
  •  长情又很酷
    2020-12-07 10:41

    float(10,6) is just fine.

    Any other convoluted storage schemes will require more translation in and out, and floating-point math is plenty fast.

提交回复
热议问题