google_map_url: Google Map Url

Description Usage Arguments Examples

View source: R/google_map_urls.R

Description

Opens a Google Map in a browser

Usage

1
2
3
4
5
6
google_map_url(
  center = NULL,
  zoom = 15,
  basemap = c("roadmap", "satellite", "terrain"),
  layer = c("none", "transit", "traffic", "bicycling")
)

Arguments

center

vector of lat/lon coordinates which defines the centre of the map window

zoom

number that sets the zoom level of the map (from 0 to 21)

basemap

defines the typ eof map to display.

layer

defines an extra layer to display on the map, if any.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

google_map_url()

google_map_url(center = c(-37.817727, 144.968246))

google_map_url(center = c(-37.817727, 144.968246), zoom = 5)

google_map_url(center = c(-37.817727, 144.968246), basemap = "terrain")

google_map_url(center = c(-37.817727, 144.968246), layer = "traffic")


## End(Not run)

Example output

sh: 1: Cannot fork

googleway documentation built on Nov. 16, 2020, 9:08 a.m.