Points in Polygon test
example/index.html
可用于绘制 polygon)。
可用于测试某一坐标点是否在国内(使用百度地图,The point-in-polygon (PIP) problem asks whether a given point in the plane lies inside or outside a polygon.
install
npm install piptest
usage
let arr = lat: 11 lng: 21 lat: 12 lng: 22 lat: 13 lng: 23 lat: 31 lng: 31 let piptest = arr ; let result = piptest; // Boolean