

These may be either (1) latitude and longitude coordinatesĬharacter string one of: "work" (the default), or "standard_api". Note: addresses should be in raw form, not URL encoded (e.g., of the form: 123 Main Street, Somewhere, NY 12345 USA)(country is optional but recommended).Ī 1xN vector of destinations.

(e.g., when you are calculating distances between one specific location and two or more destinations). If the length of this parameter is 1 and destination's length is greater than 1, address is replicated to match the length of destination This vector becomes the starting point of the distance calculation. (formatted as "lat,long" with no spaces) or physical addresses that contain "url-safe" UTF-8 characters.Įnabling the "clean" parameter (see below) attempts to strip or replace common character patternsįrom the input that are incompatible with the Google Maps API using the address_cleaner function. These may be either (1) latitude and longitude coordinates Drive_time ( address, dest, auth = "standard_api", privkey = NULL, clientid = NULL, clean = "TRUE", travel_mode = "driving", units = "metric", verbose = FALSE, add_date = "none", language = "en-EN", messages = FALSE, small = FALSE )Ī 1xN vector of locations.
