distance calculations in mysql queries

前端 未结 5 1844
野趣味
野趣味 2020-11-29 10:35

I have to query a database of thousands of entries and order this by the distance from a specified point.

The issue is that each entry has a latitude and longitude a

5条回答
  •  时光说笑
    2020-11-29 11:22

    If your question is a "find my nearest" or "store finder" type question then you can google for those terms. Generally though, that type of data is accompanied by a postal code of some description, and it is possible to narrow down the list (as Mark Maker points out) by association with postal code.

    Every case is different, and this may not apply to you, just throwing it out there.

提交回复
热议问题