Calculate polyline area and/or perimeter

In order to get polyline area and/or perimeter useĀ render/calculate_polyline:

svc=render/calculate_polyline&params={"p":[
                                            {
                                                "x":<double>,
                                                "y":<double>
                                            },
                                            ...
                                      ],
                                      "flags":<uint>,
                                      "w":<uint>}

Perimeters

Param Description
p polyline points coordinates array
x longitude
y latitude
flags display flags:
0x1 – show area;
0x2 – show parameter;
0x3 – show both params
w line width, metres

Response

{
    "area":<double>,      /* area */
    "perimeter":<double>  /* perimeter */
}