Sha256: d24719aa8e5b61ba91af58055767aa256d3809a33116906f05fb6030675f86c6

Contents?: true

Size: 477 Bytes

Versions: 6

Compression:

Stored size: 477 Bytes

Contents

require 'owmo'

api_key = ""

weather = OWMO::Weather.new api_key

# Geocode by City ID
puts weather.get :current, city_id: 5328041
puts weather.get :current, id: 5328041

# Geocode by City Name
puts weather.get :current, city_name: "Beverly Hills"
puts weather.get :current, q: "Beverly Hills"

# Geocode by Zip Code
puts weather.get :current, zip: 90210
puts weather.get :current, zip_code: 90210

# Geocode by Coordinance
puts weather.get :current, lon: -118.41, lat: 34.09

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
owmo-2.0.1 examples/query_geocode.rb
owmo-2.0.0 examples/query_geocode.rb
owmo-1.2.0 examples/query_geocode.rb
owmo-1.1.0 examples/query_geocode.rb
owmo-1.0.1 examples/query_geocode.rb
owmo-1.0.0 examples/query_geocode.rb