diff --git a/man/google_directions.Rd b/man/google_directions.Rd index a36cd8e2..3187ef4d 100644 --- a/man/google_directions.Rd +++ b/man/google_directions.Rd @@ -68,7 +68,7 @@ google_directions(origin = "Flinders Street Station, Melbourne", google_directions(origin = "Melbourne Airport, Australia", destination = "Portsea, Melbourne, Australia", - departure_time = as.POSIXct("2016-06-08 07:00:00"), + departure_time = Sys.time() + (24 * 60 * 60), waypoints = list(c(-37.81659, 144.9841), via = "Ringwood, Victoria"), mode = "driving", @@ -81,7 +81,7 @@ google_directions(origin = "Melbourne Airport, Australia", ## using bus and less walking google_directions(origin = "Melbourne Airport, Australia", destination = "Portsea, Melbourne, Australia", - departure_time = as.POSIXct("2016-06-08 07:00:00"), + departure_time = Sys.time() + (24 * 60 * 60), mode = "transit", transit_mode = "bus", transit_routing_preference = "less_walking", @@ -91,7 +91,7 @@ google_directions(origin = "Melbourne Airport, Australia", ## using arrival time google_directions(origin = "Melbourne Airport, Australia", destination = "Portsea, Melbourne, Australia", - arrival_time = as.POSIXct("2016-06-08 16:00:00", tz = "Australia/Melbourne"), + arrival_time = Sys.time() + (24 * 60 * 60), mode = "transit", transit_mode = "bus", transit_routing_preference = "less_walking", @@ -101,7 +101,7 @@ google_directions(origin = "Melbourne Airport, Australia", ## return results in French google_directions(origin = "Melbourne Airport, Australia", destination = "Portsea, Melbourne, Australia", - arrival_time = as.POSIXct("2016-06-08 16:00:00", tz = "Australia/Melbourne"), + arrival_time = Sys.time() + (24 * 60 * 60), mode = "transit", transit_mode = "bus", transit_routing_preference = "less_walking", diff --git a/man/google_elevation.Rd b/man/google_elevation.Rd index d66a5ce9..fe705111 100644 --- a/man/google_elevation.Rd +++ b/man/google_elevation.Rd @@ -31,8 +31,10 @@ You can specify the locations in one of two ways. Either as a set of single loca \dontrun{ ## elevation data for the MCG in Melbourne -location <- c(-37.81659, 144.9841) -google_elevation(locations = location, +df <- data.frame(lat = -37.81659, + lon = 144.9841) + +google_elevation(df_locations = df, key = "", simplify = TRUE) @@ -45,7 +47,7 @@ df <- data.frame(lat = c(-37.81659, -37.88950), df <- google_elevation(df_locations = df, location_type = "path", samples = 20, - key = key, + key = "", simplify = TRUE) ## plot results diff --git a/man/google_geocode.Rd b/man/google_geocode.Rd index c9a38c27..9d99ee8b 100644 --- a/man/google_geocode.Rd +++ b/man/google_geocode.Rd @@ -31,7 +31,7 @@ Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkwa \examples{ \dontrun{ df <- google_geocode(address = "MCG, Melbourne, Australia", - key = key, + key = "", simplify = TRUE) df$results$geometry$location @@ -44,7 +44,7 @@ bounds <- list(c(34.172684,-118.604794), js <- google_geocode(address = "Winnetka", bounds = bounds, - key = key, + key = "", simplify = FALSE) ## using components @@ -52,7 +52,7 @@ components <- data.frame(component = c("postal_code", "country"), value = c("3000", "AU")) df <- google_geocode(address = "Flinders Street Station", - key = key, + key = "", components = components, simplify = FALSE) diff --git a/man/google_reverse_geocode.Rd b/man/google_reverse_geocode.Rd index c2025fcb..95fcd0ff 100644 --- a/man/google_reverse_geocode.Rd +++ b/man/google_reverse_geocode.Rd @@ -32,7 +32,7 @@ Reverse geocoding is the process of converting geographic coordinates into a hum google_reverse_geocode(location = c(-37.81659, 144.9841), result_type = c("street_address"), location_type = "rooftop", - key = key) + key = "") } } diff --git a/man/google_timezone.Rd b/man/google_timezone.Rd index fe1eb899..b114dbca 100644 --- a/man/google_timezone.Rd +++ b/man/google_timezone.Rd @@ -29,7 +29,7 @@ The Google Maps Time Zone API provides time offset data for locations on the sur google_timezone(location = c(-37.81659, 144.9841), timestamp = as.POSIXct("2016-06-05"), output_format = "data.frame", - key = key) + key = "") } }