geocode_each: Geocodes one location through the Google API. See here for...

View source: R/geocode_each.R

geocode_eachR Documentation

Geocodes one location through the Google API. See here for the list of all possibilities supported by the Google Map geocoding API.

Description

Geocodes one location through the Google API. See here for the list of all possibilities supported by the Google Map geocoding API.

Usage

geocode_each(stringlocation, method, info = c("lat", "lng"))

Arguments

stringlocation

a location string

method

the API to send the request to. Can be "opencage" (default) or "google".

info

the variables to inform: by default, c("lat","lng"). Information can be many other variables depending on the method you are using. Type help(geocode_google) or help(geocode_opencage) to see details.

Value

tibble with additional columns corresponding to the info required


lvaudor/mixr documentation built on April 14, 2024, 2:17 p.m.