Skip to content

Instantly share code, notes, and snippets.

@dscape
Created August 5, 2013 11:56
Show Gist options
  • Save dscape/6155387 to your computer and use it in GitHub Desktop.
Save dscape/6155387 to your computer and use it in GitHub Desktop.
var request = require('request')
, location = process.argv[2]
;
if(!location) {
throw new Error('sad panda');
}
request(
{ method: 'GET'
, json: true
, uri: 'http://data.police.uk/api/metropolitan/neighbourhoods'},
function (err, data) {
data.body.forEach(function (place) {
// console.log(place)
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment