API DOCUMENTATION

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

mapInstance.getArea(array)

Parameter : Area

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

Note. To use getArea, you must first create a fatosmap instance.

[ example : Area ]

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