Learn R Programming

googleway (version 2.7.1)

google_map_url: Google Map Url

Description

Opens a Google Map in a browser

Usage

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

Run this code
# 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")

# }

Run the code above in your browser using DataLab