geocode_google: Geocodes one location through the Google API

View source: R/geocode_google.R

geocode_googleR Documentation

Geocodes one location through the Google API

Description

Geocodes one location through the Google API

Usage

geocode_google(stringlocation, info = c("lat", "lng"))

Arguments

stringlocation

a location string

info

the variables to inform: by default, c("lat","lng"). Information can be e.g. "locality","country","country_code","formatted_address". It can also be any type supported by the Google Map geocoding API: see Address types.

Value

tibble with additional columns corresponding to the info required

Examples

geocode_google("Grande Rue de la Guillotière, Lyon",
 info=c("lat",
        "lng",
        "country_code",
        "locality",
        "administrative_area_level_1"))

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