code: function(array) {
              if(array.length != 2) {
                  throw "GeoJSON box coordinates must have 2 elements";
              }
              return new OpenLayers.Geometry.Polygon([
                  new OpenLayers.Geometry.LinearRing([
                      new OpenLayers.Geometry.Point(array[0][0], array[0][1]),
                      new OpenLayers.Geometry.Point(array[1][0], array[0][1]),
                      new OpenLayers.Geometry.Point(array[1][0], array[1][1]),
                      new OpenLayers.Geometry.Point(array[0][0], array[1][1]),
                      new OpenLayers.Geometry.Point(array[0][0], array[0][1])
                  ])
              ]);
          }
docs: Method: parseCoords.box
  Convert a coordinate array from GeoJSON into an
  <OpenLayers.Geometry>.
  
  Parameters:
  array - {Object} The coordinates array from the GeoJSON fragment.
  
  Returns:
  {<OpenLayers.Geometry>} A geometry.