geocode: Geocoding Tool

Description Usage Arguments Examples

View source: R/spatial.R

Description

This provides a wrapper for Google's geocoding service

Usage

1
2
geocode(addresses_to_geocode, google_api_key = NA, file_name = "geocoded",
  clean = TRUE)

Arguments

addresses_to_geocode

A vector of addresses

google_api_key

OPTIONAL API Key

file_name

The name of the output file (csv)

clean

TRUE if you want to delete the temp file, FALSE if you want it to stay

Examples

1
2
3
4
5
6
7
library(cgr)
## Not run: 
library(cgr)
address <- c("1600 Pennsylvania Ave NW, Washington, DC 20500")
geocode(address)

## End(Not run)

cgr-promising-solutions/cgr documentation built on May 28, 2019, 7:16 p.m.