/node-gsv

A geek way to access the Google StreetView Data from Node.js

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

Google Street View(GSV)

A geek way to access the Google StreetView Data from Node.js

Installation

npm install git+https://github.com/sukinull/node-gsv.git

Design

We(In fact, I) focus on two information, pano's {location, links} dataset.

GSV may get location and links data by passing in latlng or Google internal panoid. Each location and links(emit event, one link by link) will bind to panoid

Usage

GSV = require('node-gsv');

GSV.on('location', function(panoid, loc) {
  console.log(panoid, JSON.stringify(loc));
});

GSV.on('link', function(panoid, link) {
  console.log(panoid, link);
});

GSV.streetView('25.033729,121.563867');
// or
GSV.streetView('dINsCMZgX--TpEMbNRNb9A');

License

AGPL or Contact me.

Changelog list

  • 0.0.1
    • Initial version
    • My first node module try