geocode_city: Geocode one city name

geocode_cityR Documentation

Geocode one city name

Description

wrapper around banR::geocode() but that limits to one result of type "municipality"

Usage

geocode_city(city_name, score_limit = 0.4)

Arguments

city_name

a string containing the city name wanted

score_limit

results below this score will be ignored and replaced by NAs

Details

Contrary to geocode(), if there is no result or if the request is empty we still get a one row data.frame (that contains only Nas)

Value

a one line data.frame


JMPivette/evavelo documentation built on April 8, 2023, 4:20 p.m.