google_map_panorama: Google Map Panorama

View source: R/google_map_urls.R

google_map_panoramaR Documentation

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

## Not run: 

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



## End(Not run)

googleway documentation built on Aug. 22, 2023, 9:13 a.m.