update `retrieve.py` for GeoJSON output