Converts regular JSON to GeoJSON for Arlington County bike counters
✓ Published0🌍 Public
Aandrewbt
Last edited Jan 19, 2021
Created on Jan 19, 2021
This example converts a JSON file of Arlington County bike counter data into GeoJSON. It loads the JSON with `simplejson`, then builds a FeatureCollection where each record becomes a Point feature with longitude and latitude coordinates, preserving the original data as properties. The script writes the result to a new `.geojson` file using `json.dump`. The data originates from an XML web service that was manually converted to JSON before processing.
AI-generated description