You are here

Google Maps JavaScript Geometry Library

The Google Maps JavaScript API V3 geometry library allows for the processing of geometric data on the surface of the Earth. The library must be specified through the use of a bootstrap parameter, and is not loaded by default. Included in the library are 3 namespaces: spherical, encoding, and poly. The Spherical namespace calculates the spherical geometry necessary for displaying the three-dimensional earth as a two-dimensional projection, among other things. The Encoding namespace contains utilities for encoding and decoding polylines. The poly namespace determines whether a given point is near or inside a polygon or polyline.