【问题标题】:Get the nearest node from a coordinate in openstreetmap database从openstreetmap数据库中的坐标获取最近的节点
【发布时间】:2011-03-24 04:09:22
【问题描述】:

例如,我有一个坐标:

41,791063, 12,6923072

我想在 OSM DB 中找到最近的节点

在本例中,节点 906459460

http://www.openstreetmap.org/api/0.6/node/906459460

那么我想知道哪些方式是其中的一部分

在这个例子中

http://www.openstreetmap.org/api/0.6/way/78456451

http://www.openstreetmap.org/api/0.6/way/76966153

http://www.openstreetmap.org/api/0.6/way/76965957

如何使用 API?谢谢

【问题讨论】:

    标签: get openstreetmap nearest-neighbor coordinate


    【解决方案1】:

    我认为直接使用 API 是不可能的,尽管我可能错了。

    http://en.wikipedia.org/wiki/Nearest_neighbor_search

    是计算机科学中的一个普遍问题,我相信有多种方法可以解决它。

    【讨论】:

    • 我怎样才能获得一个区域内的所有可用坐标来实现我的邻居搜索?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-27
    • 2020-10-30
    • 2015-10-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多