calculate_polyline
The calculate_polyline function is used to get a polyline area and/or perimeter.
svc=render/calculate_polyline¶ms={"p":[
{
"x":<double>,
"y":<double>
},
...
],
"flags":<uint>,
"w":<uint>}
Parameters
Name | Description |
---|---|
p | The array of coordinate points. |
x | Longitude. |
y | Latitude. |
flags | Displaying the flags:
|
w | Line width, metres. |
Returned result
{
"area":<double>, /* area */
"perimeter":<double> /* perimeter */
}
Possible error codes:
Code | Description |
---|---|
4 | Wrong input parameters. |