Find N Nearest LineString From A Point Using MySQL Spatial Extensions

前端 未结 3 764
醉梦人生
醉梦人生 2021-02-09 00:17

I\'m using MySQL Spatial Extensions to store data about roads and hotels. I store the hotel data as a Point while I store the road data as LineString. The tables look like this<

3条回答
  •  离开以前
    2021-02-09 00:41

    I have been also working on this issue, but unfortunately finding the nearest road for Hotels is an unfavorable solution. I have found that the entrance the road is on is the definitive answer. In other words the address. This means having an address table and matching points to nearest address road.

提交回复
热议问题