code: function(projection) {
          var length = 0.0;
          for(var i=0, len=this.components.length; i<len; i++) {
              length += this.components[i].getGeodesicLength(projection);
          }
          return length;
      }
docs: APIMethod: getGeodesicLength
  Calculate the approximate length of the geometry were it projected onto
  the earth.
  
  projection - {<OpenLayers.Projection>} The spatial reference system
  for the geometry coordinates.  If not provided, Geographic/WGS84 is
  assumed.
  
  Returns:
  {Float} The appoximate geodesic length of the geometry in meters.