google-panorama-url

gets a street view URL from a panorama ID

Showing:

Popularity

Downloads/wk

26

GitHub Stars

2

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

google-panorama-url

stable

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

NPM

url = streetviewUrl(panoId, [opt])

Gets a URL for the StreetView panorama. Options:

  • x the X tile position, default 0
  • y the Y tile position, default 0
  • zoom the zoom level, default 0

See Also

License

MIT, see LICENSE.md for details.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100