geocode_csv: geocode_csv

Description Usage Arguments Value

View source: R/geocode_csv.R

Description

Geocodes a set of addresses from a CSV file using the geocode function from bingmapr

Usage

1
2
3
4
5
6
7
8
geocode_csv(
  csv_path,
  addressLine_col = NULL,
  locality_col = NULL,
  adminDistrict_col = NULL,
  postalCode_col = NULL,
  countryRegion_col = NULL
)

Arguments

csv_path

File path of the CSV file with addresses to geocode

addressLine_col

Name of the column in the CSV containing the addressLine of the locations

locality_col

Name of the column in the CSV containing the locality of the locations

adminDistrict_col

Name of the column in the CSV containing the adminDistrict of the locations

postalCode_col

Name of the column in the CSV containing the postalCode of the locations

countryRegion_col

Name of the column in the CSV containing the countryRegion of the locations

Value

Tibble containing the original CSV with the columns "latitude" and "longitude" appended
Saves a copy of the inputted CSV including the geocoded coordinates to the same location as the original CSV with '_geocoded' appended to the filename


ericphillips99/bingmapr documentation built on March 3, 2021, 3:32 p.m.