code: function(nodes) {
          var vertices;
          if(nodes === true) {
              vertices = [
                  this.components[0],
                  this.components[this.components.length-1]
              ];
          } else if (nodes === false) {
              vertices = this.components.slice(1, this.components.length-1);
          } else {
              vertices = this.components.slice();
          }
          return vertices;
      }
docs: APIMethod: getVertices
  Return a list of all points in this geometry.
  
  Parameters:
  nodes - {Boolean} For lines, only return vertices that are
  endpoints.  If false, for lines, only vertices that are not
  endpoints will be returned.  If not provided, all vertices will
  be returned.
  
  Returns:
  {Array} A list of all vertices in the geometry.