Package 'rreversegeocoder'

Title: Reverse geocodes in R
Description: Given latitude and longitude, find the nearest city.
Authors: Jordi Rosell [aut, cre]
Maintainer: Jordi Rosell <[email protected]>
License: CC BY 4.0
Version: 0.1.0
Built: 2024-10-31 03:04:19 UTC
Source: https://github.com/jrosell/rreversegeocoder

Help Index


Download cities with population 5000

Description

Download cities with population 5000 information from geonames.

Usage

download_cities_with_population_5000()

Details

It returns a tibble with all the data

See Also

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

Examples

download_cities_with_population_5000()

Reverse geocoder

Description

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

Usage

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))