Learn R Programming

gmapsdistance (version 4.0.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
#DONTRUN
set.api.key("MY-GOOGLE-MAPS-API-KEY")

Run the code above in your browser using DataLab