高德排线数据渲染工具
输入高德API请求和响应JSON,可视化路径规划结果
输入JSON数据
请求参数 (Request)
{ "sortRule": 1, "routeOption": 2, "isBack": 0, "infiniteVehicle": 1, "depots": [ { "location": "112.940263,22.763561", "vehicleGroups": [ { "deliveryType": 0, "vehicleModelId": "2-6.075", "vehicleCount": 1, "capacity": { "weight": 112, "volume": 116.075 } } ] } ], "servicePoints": [ { "location": "113.292772,23.089041", "name": "点1", "demand": { "weight": 0.12, "volume": 13.567800000000005 } }, { "location": "111.96205,21.846797", "name": "点2", "demand": { "weight": 0, "volume": 4.32 } }, { "location": "113.638084,23.092726", "name": "点3", "demand": { "weight": 0.009, "volume": 13.3654 } } ], "deliveryCapacity": 0 }
响应参数 (Response)
{ "errcode": 10000, "errmsg": "OK", "data": [ { "depotLocation": "112.940263,22.763561", "totalTime": 795, "timeAll": 795, "totalDistance": 577995, "loading": { "weight": "0.129/112.0", "volume": "31.253/116.075", "count": "0.0/0.0" }, "routes": [ { "time": 795, "timeInclude": 795, "distance": 577995, "deliveryType": 0, "vehicleModelId": "2-6.075", "loading": { "weight": "0.129/112.0", "volume": "31.253/116.075", "count": "0.0/0.0" }, "queue": [ { "startIndex": 0, "startPoint": "112.940263,22.763561", "endIndex": 1, "endPoint": "113.292772,23.089041", "endName": "点1", "distance": 71071, "duration": 114, "scheduleTime": 114 }, { "startIndex": 1, "startPoint": "113.292772,23.089041", "endIndex": 3, "endPoint": "113.638084,23.092726", "endName": "点3", "distance": 51529, "duration": 88, "scheduleTime": 202 }, { "startIndex": 3, "startPoint": "113.638084,23.092726", "endIndex": 2, "endPoint": "111.96205,21.846797", "endName": "点2", "distance": 285376, "duration": 382, "scheduleTime": 584 }, { "startIndex": 2, "startPoint": "111.96205,21.846797", "endIndex": 0, "endPoint": "112.940263,22.763561", "endName": "仓1", "distance": 170019, "duration": 211, "scheduleTime": 795 } ] } ], "vehiclePlans": [ { "vehicleModelId": "2-6.075", "totalCount": 1, "assignedCount": 1, "avgDistance": 577995.0, "avgTime": 795.0 } ], "unassignedCount": 0, "count": 1, "depotIndex": 1, "vehicleCount": 1, "assignedVehicleCount": 1, "unassignedVehicleCount": 0 } ] }
可视化路径规划
0
路径组数
0
服务点数
0
总距离(m)
0
总时间(s)
图例说明
仓库
使用说明:
在输入框中分别粘贴高德路径规划API的请求和响应JSON数据
点击"可视化路径规划"按钮,在地图上显示仓库位置和服务点路径
仓库位置显示为黑色标记,不同路径组的服务点用不同颜色标记
点击地图上的标记可以查看详细信息
可以修改JSON数据重新可视化不同的路径规划结果