https://github.com/caged/restaraunt-inspection-data
tools and scripts for dealing with Portland, OR restaurant inspection data
https://github.com/caged/restaraunt-inspection-data
Last synced: about 2 months ago
JSON representation
tools and scripts for dealing with Portland, OR restaurant inspection data
- Host: GitHub
- URL: https://github.com/caged/restaraunt-inspection-data
- Owner: caged
- Created: 2014-12-29T16:43:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T16:13:52.000Z (over 8 years ago)
- Last Synced: 2025-01-20T10:48:27.627Z (over 1 year ago)
- Language: Shell
- Homepage: http://labratrevenge.com/restaurant-inspections/
- Size: 9.57 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
A poorly documented collection of tools and scripts to export Portland, OR. restaurant inspection data from the [Civic Apps API](http://api.civicapps.org/#restaurant-inspections), import it into postgres, and export relevant CSV data.
**Requirements**
* [csv2psql](https://github.com/drh-stanford/csv2psql)
* [jq](http://stedolan.github.io/jq/)
* [postgres](http://www.postgresql.org/)
**General usage**
``` bash
script/sync # fetches all inspections for 2014 from the civic apps api
script/tocsv # converts raw inspection and violation data to csv files
script/psqlimport # imports data to postgres database named 'portland'
script/process # performs a variety of task on the raw data (overlappoing point jittering, postgis Geom from lat/lon, etc.) and exports relevant csv files to the out/ directory
```