google_map_url: Google Map Url

View source: R/google_map_urls.R

google_map_urlR Documentation

Google Map Url

Description

Opens a Google Map in a browser

Usage

google_map_url(
  center = NULL,
  zoom = 15,
  basemap = c("roadmap", "satellite", "hybrid", "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

## 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)

googleway documentation built on March 18, 2022, 7:34 p.m.