【文件属性】:
文件名称:osm-is-area:测试OpenStreetMap项是否为区域
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-20 08:00:36
JavaScript
确定条目是否为。
该软件包使用确定是否应将某些封闭的方式视为多边形或直线。
例子
var osmIsArea = require('osm-is-area')
// first and last ref match, but { highway: 'service' } is not an area:
console.log(osmIsArea({
type: 'way',
id: 4421943,
tags: { highway: 'service' },
refs: [ 27119458, 1764217171, 27119461, 1069372913,
1764230257, 5530415689, 1764230254, 27119458]
})) // false
// first and last ref match; { waterway: 'r
【文件预览】:
osm-is-area-master
----test()
--------is-area.js(6KB)
----LICENSE(1KB)
----package.json(391B)
----readme.md(3KB)
----index.js(2KB)
----example()
--------areatest.js(2KB)