How to group latitude/longitude points that are 'close' to each other?

前端 未结 5 563
星月不相逢
星月不相逢 2021-01-31 09:30

I have a database of user submitted latitude/longitude points and am trying to group \'close\' points together. \'Close\' is relative, but for now it seems to ~500 feet.

5条回答
  •  清酒与你
    2021-01-31 09:44

    If you are considering latitude and longitude there are several factors to be considered in real time data: obstructions, such as rivers and lakes, and facilities, such as bridges and tunnels. You cannot group them simply; if you use the simple algorithm as k means you will not be able to group them. I think you should go for the spatial clustering methods as partitioning CLARANS method.

提交回复
热议问题