A geek way to access the Google StreetView Data from Node.js
npm install git+https://github.com/sukinull/node-gsv.git
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
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');
AGPL or Contact me.
- 0.0.1
- Initial version
- My first node module try