Skip to contents

.geocode

Usage

.geocode(
  geo,
  pt = FALSE,
  bbox = FALSE,
  all = FALSE,
  method = default_method,
  crs = default_crs
)

Arguments

geo

character. Place name(s)

pt

logical. If TRUE point geometry is created.

bbox

logical. If TRUE bounding box geometry is created

all

logical. If TRUE the point, bbox and xy representations are returned as a list

method

the geocoding service to be used. See ?tidygeocoder::geocode

crs

desired CRS. Defaults to AOI::default_crs

Value

a data.frame, sf object, or vector