area
Given a polygon (an array of rings, where each ring is an array of points), returns the area.
var area = ruler.area([[
[-67.031, 50.458], [-67.031, 50.534], [-66.929, 50.534],
[-66.929, 50.458], [-67.031, 50.458]
]]);
//=area
Return
number
area value in the specified units (square kilometers by default)
Parameters
polygon
polygon
Return
area
Parameters
multiPolygon
array of polygons
Return
area