find_city: Find city by name or coordinates.

Description Usage Arguments Value See Also Examples

View source: R/current.R

Description

Either search for city by name or fetch weather data for a number of cities around geo point.

Usage

1
find_city(city = NA, ...)

Arguments

city

city name (and country code)

...

see owm api documentation, pass lat and lon to search by coordinates

Value

list of weather data for matches

See Also

find_cities_by_geo_point

Examples

1
2
3
4
5
## Not run: 
   find_city("London,UK")
   find_city(lat = 51.50853, lon = -0.12574, cnt = 5)

## End(Not run)

owmr documentation built on Jan. 11, 2020, 5:08 p.m.