I'm using Google Maps Android API v2 and a polygon drawn on maps. Now I want to calculate the area of this polygon.
I know that Google Maps JavaScript API v3 has a simple way to do this, using: google.maps.geometry.spherical.computeArea(yourPolygon.getPath()).
Is there a similar way to calculate polygon area using Google Maps Android API v2? If no, wich method do you suggest?
Thanks in advance.
Best regards.
EDIT:
I found the following algorithm that seems to resolve my problem:
http://users.soe.ucsc.edu/~pang/160/f98/Gems/GemsIV/sph_poly.c