Last active
February 11, 2017 00:40
-
-
Save eayoungs/da282fcd300dc6d5766f2df15fad569a to your computer and use it in GitHub Desktop.
Soda-Js adapted to C4SF Energy & Env project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SODA Library for importing the data-set: https://github.com/socrata/soda-js */ | |
var soda = require('soda-js'); | |
/* get the data and render the page */ | |
var consumer = new soda.Consumer('data.sfgov.gov'); | |
consumer.query() | |
.withDataset('j2j3-acqj') | |
.limit(2000) | |
/* .where({ namelast: 'SMITH' }) | |
.order('namelast') */ | |
.getRows() | |
.on('success', function(rows) { console.log(rows); }) | |
.on('error', function(error) { console.error(error); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment