Search owm_cities dataset by city name and country code.

search_city_list(city, country_code = "")

Arguments

city

city name (regex)

country_code

two letter country code (AU, DE, ...), use country_code = "" as wildcard

Value

data frame with matches

See also

owm_cities dataset

Examples

search_city_list("London", "GB")
#> id nm lat lon countryCode #> 23110 2643734 Londonderry County Borough 54.99721 -7.30917 GB #> 23112 2643741 City of London 51.51279 -0.09184 GB
search_city_list("London")
#> id nm lat lon countryCode #> 1427 6058560 London 42.98339 -81.23304 CA #> 23110 2643734 Londonderry County Borough 54.99721 -7.30917 GB #> 23112 2643741 City of London 51.51279 -0.09184 GB #> 31526 4839416 New London 41.35565 -72.09952 US #> 33497 1006984 East London -33.01529 27.91162 ZA #> 66657 4298960 London 37.12898 -84.08326 US #> 66991 4361094 Londontowne 38.93345 -76.54941 US #> 67816 4517009 London 39.88645 -83.44825 US #> 70464 5088905 Londonderry 42.86509 -71.37395 US #> 71338 5164352 New London 41.08505 -82.39989 US #> 72133 5264455 New London 44.39276 -88.73983 US
search_city_list("Lond")
#> id nm lat lon countryCode #> 1427 6058560 London 42.98339 -81.23304 CA #> 1922 2792165 Londerzeel 51.00468 4.30304 BE #> 13380 3458449 Londrina -23.31028 -51.16278 BR #> 14463 3456146 Nova Londrina -22.76583 -52.98500 BR #> 23110 2643734 Londonderry County Borough 54.99721 -7.30917 GB #> 23112 2643741 City of London 51.51279 -0.09184 GB #> 31526 4839416 New London 41.35565 -72.09952 US #> 33497 1006984 East London -33.01529 27.91162 ZA #> 35765 3846616 Londres -27.71439 -67.13349 AR #> 43284 2978369 Saint-Martin-de-Londres 43.79040 3.73066 FR #> 44776 3008432 La Londe-les-Maures 43.13714 6.23499 FR #> 49820 1264792 Londa 15.46907 74.51906 IN #> 54047 188981 Londiani -0.16496 35.59086 KE #> 66657 4298960 London 37.12898 -84.08326 US #> 66991 4361094 Londontowne 38.93345 -76.54941 US #> 67816 4517009 London 39.88645 -83.44825 US #> 70464 5088905 Londonderry 42.86509 -71.37395 US #> 71338 5164352 New London 41.08505 -82.39989 US #> 72133 5264455 New London 44.39276 -88.73983 US