This is a very simple node-based client demonstrating how you can use the Twitter streaming API with the locations parameter specified. It uses geojson.io to map any tweets it hears within a user-specified duration.
Before running the map.coffee
script, place your app’s OAuth keys in keys.json
and run npm install
to install dependencies (viz., ntwitter
and opener
).
You can optionally specify the place
from which the tweets should be coming and the time
to listen in seconds:
map.coffee [place] [time]
For example, to map tweets coming from Chicago within the next 5 seconds:
map.coffee chicago 5