Issue
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 by it.
So far I'm thinking about setting up a web service that, when posted the list of coordinates, uses the JS Google Maps API v3 to calculate the area. But there might be a way of doing this easily with some feature from Android I don't know about, natively.
Thanks in advance for your help!
Solution
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
Answered By - L. G.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.