1.0.0 • Published 5 years ago

streetview-publish-client-libraries-v1 v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
-
Last release
5 years ago

Node.js Client for Street View Publish API (Alpha)

Street View Publish API: The Street View Publish API allows your application to publish 360 photos to Google Maps, along with image metadata that specifies the position, orientation, and connectivity of each photo. With this API, any app can offer an interface for positioning, connecting, and uploading user-generated Street View images.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Street View Publish API.
  4. Setup Authentication.

Installation

$ npm install streetview-publish-client-libraries-v1

Preview

StreetViewPublishServiceClient

 const google = require('google.streetview.publish.v1');

 const client = google.StreetViewPublishServiceClient({
   // optional auth parameters.
 });

 const photo = {};
 client.createPhoto({photo: photo})
   .then(responses => {
     const response = responses[0];
     // doThingsWith(response)
   })
   .catch(err => {
     console.error(err);
   });

Next Steps