Skip to content

Commit 72b34cb

Browse files
dileepnandanamcoderhs
authored andcommitted
Updated readme for weather history
1 parent e140c4d commit 72b34cb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ options[:cnt] = 6
9696
OpenWeather::ForecastDaily.city_id("1273874", options)
9797
```
9898

99+
### Weather history API
100+
101+
102+
```ruby
103+
require 'open_weather'
104+
105+
# get weather history by city name
106+
OpenWeather::History.city("Cochin, IN", options)
107+
108+
# get weather history by city id
109+
OpenWeather::History.city_id("1273874", options)
110+
111+
# get weather history by geocode. (lat, lon)
112+
OpenWeather::History.geocode(9.94, 76.26, options)
113+
```
114+
99115
Doucumentation about the weather forecast end-point:
100116
http://openweathermap.org/forecast
101117

0 commit comments

Comments
 (0)