🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

awesome-streetview

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-streetview

random beautiful [lat, lng] Google Street View locations

latest
Source
npmnpm
Version
1.4.2
Version published
Maintainers
1
Created
Source

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.

Keywords

test

FAQs

Package last updated on 29 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts