{
  "slug": "nearest-neighbor",
  "name": "最近邻距离计算",
  "brand": "Nearest Neighbor",
  "category": "vector",
  "categoryName": "矢量处理",
  "description": "给一批点逐个找最近的目标（点、线、面都行）→ 算出距离、带回目标属性、还能生成连线下载",
  "url": "https://data.ruiduobao.cn/tools/nearest-neighbor/",
  "input": "出发点图层（点）+ 目标图层（点 / 线 / 面）：GeoJSON / SHP zip / KML",
  "output": "带最近目标序号与距离的结果点图层（GeoJSON / SHP / CSV）+ 可选连线图层（GeoJSON）+ 距离统计摘要",
  "freeBoundary": "免费：出发点与目标各 2 万个要素以内随便算，带回目标属性、生成连线、下载结果全开放；全线通会员：更大批量。",
  "processingLocation": "用户浏览器端（文件不上传服务器）",
  "parameters": [
    {
      "default": true,
      "description": "生成出发点到最近位置（目标点或垂足）的连线图层，方便核对与出图",
      "label": "生成连线",
      "name": "makeLines",
      "type": "boolean"
    },
    {
      "default": "米",
      "description": "结果同时给出米与千米两列，此项只影响页面摘要的显示单位偏好",
      "enum": [
        "米",
        "千米"
      ],
      "label": "距离单位",
      "name": "unit",
      "type": "string"
    }
  ],
  "examples": [
    {
      "title": "示例：30 个村点分别找最近的医院（点）和最近的河流（线）",
      "url": "https://data.ruiduobao.cn/tools/nearest-neighbor/"
    }
  ],
  "version": "1.0.0",
  "updated": "2026-11-27"
}