powered by
Get current weather data for given city.
get_current(city = NA, ...)
city name or id
see owm api documentation, you can also skip parameter city and pass lat (latitude) and lon (longitude) or zip (zip code) instead
city
lat
lon
zip
list
# NOT RUN { get_current("London", units = "metric") get_current(2643741, lang = "DE") get_current(lon = -0.09184, lat = 51.51279) get_current(zip = "94040,US") # }
Run the code above in your browser using DataLab