title: Python Script to Convert CSV to GeoJSON
body: <p>I am needing a Python script to convert CSV data to GeoJSON output.  The output should match the format, below:</p>
  
  <pre><code>{
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "geometry": {
          "type": "Point",
          "coordinates":  [ -85.362709,40.466442 ]
        },
        "properties": {
          "weather":"Overcast",
          "temp":"30.2 F"
        }
      }
    ]
  }
  </code></pre>
  
  <p>I am using this script to run the process, but it does not produce the desired output:</p>
  
  <pre><code>import csv, json
      li = []
      with open('CurrentObs.csv', newline='') as csvfile:
          reader = csv.reader(csvfile, delimiter=',')
          for latitude, longitude, weather, temp in reader:
              li.append({
                 "latitude": latitude,
                 "longitude": longitude,
                 "weather": weather,
                 "temp": temp,
                 "geo": {
                      "__type": "GeoPoint",
                      "latitude": latitude,
                      "longitude": longitude,
                  }
              })
  
      with open("GeoObs.json", "w") as f:
          json.dump(li, f)
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>