Learn R Programming

googleway (version 2.7.8)

google_map_panorama: Google Map Panorama

Description

Opens an interactive street view panorama in a browser

Usage

google_map_panorama(
  viewpoint = NULL,
  pano = NULL,
  heading = NULL,
  pitch = 0,
  fov = 90
)

Arguments

viewpoint

vector of lat/lon coordinates. If NULL, pano must be used.

pano

string of a specific panorama ID (see https://developers.google.com/maps/documentation/urls/get-started#pano-id). If NULL, viewpoint must be used.

heading

number between -180 and 360. Indicates the compass heading of the camera in degrees clockwise from north.

pitch

number between -90 and 90, specifying the angle, up or down, of the camera

fov

number between 10 and 100, determines the orizontal field of view of the image.

Examples

Run this code
if (FALSE) {

google_map_panorama(viewpoint = c(48.857832, 2.295226))

google_map_panorama(viewpoint = c(48.857832,2.295226),
  heading = -90, pitch = 38, fov = 80)

google_map_panorama(pano = "4U-oRQCNsC6u7r8gp02sLA")


}

Run the code above in your browser using DataLab