code: function gml2coord(posList) {
    var pnts = posList.split(/[ ,]+/).filter(isNotEmpty);
    var coords = [];
    for (var i = 0; i < pnts.length; i += 2) {
      coords.push([parseFloat(pnts[i + 1]), parseFloat(pnts[i])]);
    }
    return coords;
  }
docs: Utility function to change esri gml positions to geojson positions