Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)