Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvexel/socrata-geojson
Convert the data from a Socrata SODA 'geo' json endpoint to actual geoJSON
https://github.com/mvexel/socrata-geojson
Last synced: 2 months ago
JSON representation
Convert the data from a Socrata SODA 'geo' json endpoint to actual geoJSON
- Host: GitHub
- URL: https://github.com/mvexel/socrata-geojson
- Owner: mvexel
- License: apache-2.0
- Created: 2014-06-09T16:43:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-09T17:59:36.000Z (over 10 years ago)
- Last Synced: 2024-05-01T23:28:43.029Z (8 months ago)
- Language: Python
- Size: 152 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
socrata-geojson
===============Convert the data from a Socrata SODA 'geo' json endpoint to actual geoJSON
## Installation
pip install -r requirements.txt
## Usage
python parse-socrata-json.py URL OUTFILE
You will end up with a valid GeoJSON file that contains all the objects from the Socrata response that have a location.
Try it with
python parse-socrata-json.py\
https://data.cityofchicago.org/resource/alternative-fuel-locations.json?fuel_type_code=CNG\
~/tmp/demo.geojson![example](https://dl.dropboxusercontent.com/u/187922/Screenshot%202014-06-09%2011.25.20.png)