Update geojson output to handle closures