Google APIs are used to determine address information associated with the locations specified by the longitude and latitude columns of the incoming dataframe.

Address information is obtained by using the ggmap package.

addGoogleAddress(
  df,
  lonVar = "longitude",
  latVar = "latitude",
  existingMeta = NULL
)

Arguments

df

dataframe with geolocation information (e.g. those created by wrcc_qualityControl() or airsis_qualityControl)

lonVar

name of longitude variable in the incoming dataframe

latVar

name of the latitude variable in the incoming dataframe

existingMeta

existing 'meta' dataframe from which to obtain metadata for known monitor deployments

Value

Input dataframe with additional columns: siteName, countyName.

References

https://developers.google.com/maps/documentation/geocoding/overview