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

Calculating the area and centroid of a polygon
Determining whether or not a polygon (2D) has its vertices ordered clockwise or counterclockwise