tidygeocoder (version 0.2.5)

geo_cascade: Geocode addresses

Description

First attempts to use the US Census Geocoder (geo_census) method and then uses the Nominatim/OSM (geo_osm) method if the census method failed. Returns latitude and longitude coordinates and the method used to return results (OSM or Census)

Usage

geo_cascade(address, lat = lat, long = long, verbose = FALSE)

Arguments

address

single line address.

lat

name of latitude field

long

name of longitude field

verbose

logical. If TRUE outputs logs.

Value

latitude and longitude coordinates and the geocoder method used (geo_method) in tibble format (3 columns)

Examples

Run this code
# NOT RUN {
geo_cascade("1600 Pennsylvania Ave Washington, DC")
geo_cascade("Paris, France")
# }

Run the code above in your browser using DataCamp Workspace