random beautiful [lat, lng] Google Street View locations
npm install awesome-streetview
(webgl demo - reload to see more)
Returns a random [ latitude, longitude ] location that looks darn good in Google Street View.
PRs for more welcome, see Contributing.
``js
var streetview = require('awesome-streetview')
streetview()
//=> [60.070409, 6.542388999999957]
streetview()
//=> [33.839717, 135.774165]
streetview.locations
//=> [ ... [33.839717, 135.774165], ... ]
`
For example:
> [[33.839717, 135.774165] - view in google street view](https://www.google.ca/maps/@33.839717,135.774165,3a,75y,162h,90t/data=!3m8!1e1!3m6!1s8VzDsruxiVgAAAQfCLiNTg!2e0!3e11!6s%2F%2Fgeo3.ggpht.com%2Fcbk%3Fpanoid%3D8VzDsruxiVgAAAQfCLiNTg%26output%3Dthumbnail%26cb_client%3Dmaps_sv.tactile.gps%26thumb%3D2%26w%3D203%26h%3D100%26yaw%3D162%26pitch%3D0!7i7168!8i3584)
The lat,lng can be extracted from the URL.
`sh`
npm install awesome-streetview --save

#### streetview()
Returns a random [ latitude, longitude ] pair.
#### streetview.locations
The array containing all [ latitude, longitude ] locations.
#### array = require('awesome-streetview/locations.json')
A JSON file containing the raw [ latitude, longitude ] pairs.
If you want to add more, submit a pull request patching locations.json, and include a screenshot of your beautiful lat,lng in Google Street View. The Evil Master Overlord will then decide whether it is worthy of being added.
Please test the location with google-panorama-equirectangular` to ensure it stitches correctly. For example:
http://mattdesl.github.io/google-panorama-equirectangular/demo/#36.2381539,137.9683151
- google-panorama-by-location
- google-panorama-by-id
- google-panorama-equirectangular
MIT, see LICENSE.md for details.