Learn R Programming

gmapsdistance (version 3.4)

set.api.key: Set the Google Maps API key

Description

This function stores a user's Google Maps API key as the package's environmental variable

Usage

set.api.key(key)

Arguments

key

is the user's Google Maps API key

Examples

Run this code
# NOT RUN {
#DONTRUN
set.api.key("MY-GOOGLE-MAPS-API-KEY")
# }

Run the code above in your browser using DataLab