code: function polygonize (str, properties) {
    var coordinates = str.split(' ').map(function (pairStr) {
      return pairStr.split(',').reverse().map(Number);
    });
  
    return polygon([coordinates], properties);
  }
docs: converts an alert polygon string to a GeoJSON polygon geometry