tidygeocoder (version 0.2.5)

geo_osm: Geocode addresses

Description

Obtains latitude and longitude coordinates from an address using the Nominatim (OSM) geocoder service. Can be used with non-US or non-street level addresses unlike the Census geocoder. This function calls the geocode_OSM function from the tmaptools package.

Usage

geo_osm(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 in tibble format

Details

WARNING - This service has a usage limit and it will return missing coordinates once the usage limit is reached.

Examples

Run this code
# NOT RUN {
geo_osm("1600 Pennsylvania Ave Washington, DC")
geo_osm("Paris, France",verbose=TRUE)
# }

Run the code above in your browser using DataLab