Given latitude and longitude, find the nearest city in US with population 5000.

reverse_geocoder_us_cities_with_population_5000(df)

Arguments

df

A data.frame or tibble with the first two columns latitude and longitude

Details

It returns the nearest geonameid from geonames.

See also

<https://github.com/jrosell/rreversegeocoder/blob/main/R/reverse_geocoder.R>

Examples

reverse_geocoder_us_cities_with_population_5000(data.frame(34.6, -120))
#> # A tibble: 1 × 1
#>   geonameid
#>   <fct>    
#> 1 5397059