Skip to content

Instantly share code, notes, and snippets.

@bertspaan
Created February 13, 2017 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bertspaan/34b26eebb8c226af58ae8bce46103884 to your computer and use it in GitHub Desktop.
Save bertspaan/34b26eebb8c226af58ae8bce46103884 to your computer and use it in GitHub Desktop.
Outputs all street names in NYC Space/Time Directory's `nyc-streets` dataset
const H = require('highland')
const request = require('request')
H(request('http://s3.amazonaws.com/spacetime-nypl-org/datasets/nyc-streets/nyc-streets.objects.ndjson'))
.split()
.compact()
.map(JSON.parse)
.pluck('name')
.uniq()
.toArray((streets) => {
console.log(streets)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment