Skip to content

Commit

Permalink
Document the new feature on the readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencauthon committed Oct 11, 2012
1 parent 47f35af commit 8485729
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ url: http://weather.yahoo.com/search
response.condition['text'] => "Parcialmente Nublado"
response.condition['country'] => "Brasil"

If you don't know your WOEID, you can leverage Yahoo's [GeoPlanet](http://developer.yahoo.com/geo/geoplanet) API by providing your Yahoo App ID. Then you can search by postal code, city/state, landmark, or any other combination allowed by their service. Such as:

client = Weatherman::Client.new( { :app_id => '[YOUR YAHOO APP ID]' } )

client.lookup_by_location('66061').condition['temp']
client.lookup_by_location('olathe, ks').condition['temp']
client.lookup_by_location('north pole').condition['temp']
client.lookup_by_location('sydney opera house').condition['temp']


== Contributors

Leandro de Oliveira (http://github.com/leandroo)
Expand Down

0 comments on commit 8485729

Please sign in to comment.