PHP/MySQL: Select locations close to a given location from DB

后端 未结 7 1539
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 03:15

In PHP, I have the following code for calculating the distance between two locations:



        
7条回答
  •  日久生厌
    2021-02-02 03:55

    There are MySQL functions available for doing exactly this.

    http://dev.mysql.com/doc/refman/5.0/en/gis-introduction.html

提交回复
热议问题