Demo for calculating polygon area in API