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
require 'twitter' | |
Twitter::Search.new.geocode(39.037, -94.5874, '5mi').fetch().results | |
#=> all tweets within 5 miles of lat/lon | |
Twitter::Search.geocode(39.037, -94.5874, '5mi').fetch().results.first | |
#=> most recent tweet within 5 miles of lat/lon | |
Twitter::Search.new('dinner').geocode(39.037, -94.5874, '5mi').fetch().results | |
#=> all tweets containing the word 'dinner' within 5 miles of lat/lon |