Giter Site home page Giter Site logo

cfierbin / google-streetview-images Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bafolts/google-streetview-images

0.0 2.0 0.0 6 KB

Pull google streetview panoramic images along a route.

Home Page: http://www.brianfolts.com/driver/

License: The Unlicense

JavaScript 33.70% HTML 66.30%

google-streetview-images's Introduction

google-streetview-images

Pull google streetview images along a route. With a provided origin and destination, the panorama streetview images from along that route will be downloaded sequentially.

There is a free quota of roughly 25,000 image requests per day, if using this tool in production you will most likely need to upgrade to a premium account. After you reach the image quota limit you will no longer pull images. If you enter in a very long route you can reach this limit quickly.

Sample Usage

function main() {
  new StreetViewImages({
      origin: document.getElementById("origin").value,
      destination: document.getElementById("destination").value,
      apiKey: document.getElementById("apiKey").value,
      onPanoLoaded: function (pano) {
          console.log(pano);
          document.body.appendChild(document.createElement("img"))
              .src = pano.panoUrl
      },
      onError: function (err) {
          console.log(err);
      },
      onComplete: function () {
          console.log("Done pulling images on route");
      }
  });
}

Usages in the wild

Google Maps Streetview Player

google-streetview-images's People

Contributors

bafolts avatar cfierbin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.