geocode: Find coordinates for geographic locations

View source: R/geocode.R

geocodeR Documentation

Find coordinates for geographic locations

Description

Find coordinates for geographic locations

Usage

geocode(country, location, adm1=NULL, adm2=NULL, adm3=NULL, adm4=NULL, adm5=NULL, service="nominatim", ...)

Arguments

country

character or vector. Cannot be missing or contain NAs

location

character or vector. Cannot be missing or contain NAs

adm1

character or NULL

adm2

character or NULL

adm3

character or NULL

adm4

character or NULL

adm5

character or NULL

service

character. one of "nominatim" or "geonames"

...

character,additional arguments to pass to the service (e.g., "username=myname")

Value

list

Examples

 h <- geocode (country="United States", adm1="California", location="San Francisco") 

reagro/carobiner documentation built on Dec. 4, 2024, 3:21 p.m.