Reading a KML file with Google Maps JavaScript API Version 3 and geoxml3.

Placemark
Polygon
outerBoundaryIs
Calculating the area and centroid of a polygon
On Wayback Machine/internet archive (original link dead:Determining whether or not a polygon (2D) has its vertices ordered clockwise or counterclockwise)