google-panorama-url
v1.0.0
Published
gets a street view URL from a panorama ID
Downloads
42
Maintainers
Readme
google-panorama-url
Returns a raw street view URL from a panorama ID, tile position, and zoom level. This is an undocumented entry point from Google Maps, and best suited for experiments and artistic exploration.
Example
An example in the browser:
var streetview = require('google-panorama-url')
var loadImage = require('img')
var url = streetview('dXZfBMex9_L7jO2JW3FTdA')
loadImage(url, function (err, image) {
if (err) throw err
document.body.appendChild(image)
})
Usage
url = streetviewUrl(panoId, [opt])
Gets a URL for the StreetView panorama. Options:
x
the X tile position, default 0y
the Y tile position, default 0zoom
the zoom level, default 0
See Also
- google-panorama-equirectangular
- google-panorama-zoom-level
- google-panorama-by-id
- google-panorama-by-location
- google-panorama-tiles
- awesome-streetview
License
MIT, see LICENSE.md for details.