In order to get polygon area and/or perimeter use render/calculate_polygon:
svc=render/calculate_polygon¶ms={"p":[ { "x":<double>, "y":<double> }, ... ], "flags":<uint>}
Param | Description |
---|---|
p | polygon points coordinates array |
x | longitude |
y | latitude |
flags | display flags: 0x1 - show area; 0x2 - show parameter; 0x3 - show both params |
{ "area":<double>, /* area */ "perimeter":<double> /* perimeter */ }