Skip to content

Commit

Permalink
Corrected order of "lat" and "long" variables.
Browse files Browse the repository at this point in the history
Twitter API defines geocode order as "latitude,longitude,radius".
Variable names implied order was "longitude" before "latitude".
  • Loading branch information
tobym committed Oct 5, 2009
1 parent b9ee178 commit 43eaaca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/twitter/search.rb
Expand Up @@ -73,10 +73,10 @@ def since(since_id)
self
end

# Search tweets by longitude, latitude and a given range.
# Search tweets by latitude, longitude, and a given range.
# Ranges like 25km and 50mi work.
def geocode(long, lat, range)
@query[:geocode] = [long, lat, range].join(',')
def geocode(lat, long, range)
@query[:geocode] = [lat, long, range].join(',')
self
end

Expand Down

0 comments on commit 43eaaca

Please sign in to comment.