API DOCUMENTATION

Area

Returns the area value between three or more specified coordinate.Return value is in “m2”

mapInstance.getArea(array)

 

Parameter
Required Parameter Description
array List of coordinates to obtain area, must be 3 or more coordinates
ex) [{lat: , lng: },{lat: , lng: }….]

 

Example
mapInstance.getArea(
   [
       {lng: -122.019807, lat: 45.632433},
       {lng: -122.019767, lat: 45.632453},
       {lng: -122.01971, lat: 45.632472}
   ])

 

Return

Calculated square meter area value