文件名称:osm-road-graph
文件大小:11.58MB
文件格式:ZIP
更新时间:2024-06-06 15:25:22
nodejs distance openstreetmap osm routing
安装: npm i osm-road-graph 用法示例: 初始化: import RoadGraph from 'osm-road-graph/lib/roadGraph' ; import { elements as roads_graph } from 'osm-road-graph/test/with_footways.json' ; const roadGraph = RoadGraph . fromOsmGraph ( roads_graph , RoadGraph . GraphTypes . pedestrian ) ; 查找方式: 通过坐标找到方法: const coords1 = { lat : 53.68350 , lng : 23.83437 } ; const coords2 = { lat : 53.67722 , lng : 23.82298 }
【文件预览】:
osm-road-graph-master
----.babelrc(334B)
----package.json(1KB)
----test()
--------test.js(2KB)
--------roads_grodno.json(8.73MB)
--------without_service.json(3.79MB)
--------minsk.json(20.71MB)
--------2KNodes.json(465KB)
--------100KNodes.json(15.96MB)
--------200KNodes.json(29.12MB)
--------with_footways.json(15.66MB)
----LICENSE(1KB)
----package-lock.json(69KB)
----src()
--------makeDistanceMatrix.js(2KB)
--------initialize.js(4KB)
--------dijkstra()
--------roadGraph.js(7KB)
----.gitignore(700B)
----lib()
--------makeDistanceMatrix.js(3KB)
--------initialize.js(5KB)
--------dijkstra()
--------roadGraph.js(9KB)
----README.md(3KB)
----.gitattributes(378B)