street-view-embed-url
v1.0.0
Published
Get a URL to the street view image currently shown in a street view embed, with matching heading and zoom
Downloads
4
Readme
street-view-embed-url
Get a URL to the street view image currently shown in a street view embed, with matching heading and zoom.
Install
npm install street-view-embed-url
Usage
import getStreetViewUrl from 'street-view-embed-url'
const url = getStreetViewUrl(streetView)
// → "https://www.google.com/maps/@?api=1&map_action=pano&pano=4DlwePXzmIn0wVOUpVj2og&viewpoint=37.78229489108098%2C-122.3910949675839&heading=264.5694516879916&pitch=11.234184088912102&fov=133.163577613723"
It returns a URL
object.