Calculate the area covered by a polygon in a google map in an Android App

前端 未结 3 808
南方客
南方客 2021-01-03 12:37

I\'ve got a series of Location / GeoPoint objects that form a polygon in my Android app. I wonder if there\'s any way to calculate the area covered

3条回答
  •  醉梦人生
    2021-01-03 13:15

    A method doing this is posted in following answer:

    https://stackoverflow.com/a/16210785/891479

    This is based on following formula:

    http://mathworld.wolfram.com/PolygonArea.html

    http://en.wikipedia.org/wiki/Polygon

    Principle of plolygon area calculation using this formula:

    http://maruzar.blogspot.com/2011/12/irregular-and-regular-polygon-area-by.html

提交回复
热议问题