beautiful [lat, lng] Google Street View locations
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore bam! Jun 22, 2015
.npmignore bam! Jun 22, 2015
LICENSE.md bam! Jun 22, 2015
README.md use a location that stitches more correctly in readme Oct 29, 2015
index.js bam! Jun 22, 2015
locations.json replace with similar scene which is less slanted / rotated Oct 30, 2015
package.json 1.4.2 Oct 29, 2015
test.js clean up locations to only the best ones; add a test for duplicates Oct 27, 2015

README.md

awesome-streetview

experimental

(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.

equirects

Example

var streetview = require('awesome-streetview')

streetview()
//=> [60.070409, 6.542388999999957]

streetview()
//=> [33.839717, 135.774165]

streetview.locations
//=> [ ... [33.839717, 135.774165], ... ]

For example:

latlng

[33.839717, 135.774165] - view in google street view

The lat,lng can be extracted from the URL.

Install

npm install awesome-streetview --save

Usage

NPM

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.

Contributing

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

See Also

License

MIT, see LICENSE.md for details.