title: How to parse GeoJSON with Ruby and save coordinates to .csv file?
body: <p>I want to parse a GeoJSON file (Point type) and save the coordinates (lat/lng) to .CSV file. How to do this with Ruby? Following is a GeoJSON file. Thanks in advance!</p>
  
  <pre><code>{  "type": "FeatureCollection",  
      "features": [
  { "type": "Feature",
    "id": 1,
    "properties": {
      "cluster": {
        "x": -0.229559,
        "y": 0.270089
      }
    },
    "geometry": {
      "type": "Point",
      "coordinates": [
        -74.1518294,
        40.5793043
      ]
    }
  },
  {
    "type": "Feature",
    "id": 2,
    "properties": {
      "cluster": {
        "x": 0.00379515,
        "y": 0.121912
      }
    },
    "geometry": {
      "type": "Point",
      "coordinates": [
        -74.0818064,
        40.9278118
      ]
    }
  }, ]}          
  </code></pre>