Google_geocode: Get geocoding information using Google Geocode API

Description Usage Arguments Value

View source: R/Google_geocode.R

Description

Google_geocode is designed to take an address string, and user app key. The function queries the Google Geocode API (https://developers.google.com/maps/documentation/geocoding/start) and returns the various components from the JSON output code. This geocoding information from the JSON is originally returned as a vector.

Usage

1
Google_geocode(address = NULL, key = NULL, verbose = FALSE)

Arguments

address

a string; the address to be queried for geocoded information.

key

a string; the user's Google API key

verbose

a boolean; TRUE to display json webaddress, FALSE to not display json webaddress

Value

location information for the entered address string: original_address, latitude, longitude, formatted_address, street_number , route, locality (city), administrative_area_3 (district) , administrative_area_2 (county), administrative_area_1 (state) , country, postal_code


mike-decarlo/gcd documentation built on Oct. 19, 2020, 9:16 a.m.