Usage
google_encode64(address, dest = NULL, gmode = "geocode", privkey = NULL, clientid = NULL, debug = FALSE, verbose = FALSE, travel_mode = "driving", units = "metric", language = "en-EN", urlencode = FALSE)
Arguments
address
A 1xN vector of UTF-8 addresses (if gmode='dtime', this is the origin address).
dest
If gmode is 'dtime', this is the destination address.
gmode
character string; must be either "geocode" (the default) or "dtime" (for distance requests).
privkey
character string; your Google for Work API key
clientid
character string; generally, this ID will be of the form 'gme-[company]'.
debug
logical; when TRUE
, returns a complete data frame of locations and their associated URL signatures (this can be useful for debugging invalid signatures).
verbose
logical; when TRUE
, displays additional progress output.
travel_mode
character string; currently, valid values include (see this page for details):
- driving (the default): indicates standard driving directions using the road network.
- transit: requests directions via public transit routes.
- walking: requests walking directions via pedestrian paths & sidewalks (where available).
- bicycling: requests bicycling directions via bicycle paths & preferred streets (currently only available in the US and some Canadian cities).
units
character string; must be either "metric" (the default) or "imperial".
Specifying "metric" will return distance between origin and destination as kilometers,
whereas "imperial" returns distance in miles. For geocode requests this parameter
is ignorned if non-null.
language
character string; localization of the returned object. This parameter is
set to "en-EN" by default, but refer to
this page
for an up-to-date list of Google's supported languages.