Giter Site home page Giter Site logo

extract-streetview's Introduction

extract-streetview

experimental

⚠️ This tool is experimental. ⚠️

A command-line tool to extract high-res spherical images and other data from Google StreetView.

extract-streetview 43.6473963,-79.3923407 > panorama.png

Example of some output images:

equirects

Install

This tool uses Electron for proper interaction with the Google API, so it is fairly heavy (~100mb). Install with latest npm.

npm install extract-streetview -g

Examples

With default settings:

extract-streetview 43.6473963,-79.3923407 > panorama.png

screen

Other examples:

# high-res street view
extract-streetview 43.6473963,-79.3923407 --zoom 4 > panorama.png

# search outdoor results only
extract-streetview 43.6473963,-79.3923407 --source outdoor > panorama.png

# random cool panorama
extract-streetview -o image.png

# geolocate to current position
extract-streetview current -o myStreet.png

Usage

NPM

Usage:
  extract-streetview [lat,lng] [opts]

Options:
  --output, -o      image output path
  --zoom, -z        zoom level (quality), can be 0-4 or "max"
  --radius, -r      search radius in meters, default 50
  --preference, -p  search preference, "nearest" or "best" (default)
  --source, -s      photo source, "outdoor" or "default"
  --format, -f      output format, "jpg" or "png" (default)
  --quality, -q     encoding quality for JPG, default 0.9
  --id              the first argument is a panoID instead of lat,lng

Extracts a street view panorama from [ latitude, longitude ] input (or google.com/maps/ URL). If not specified, will extract a random Awesome StreetView.

You can also specify "current" as the location, and it will use the browser's geolocation API to determine your latitude/longitude.

If no --output is given, the PNG is written to stdout.

License

MIT, see LICENSE.md for details.

extract-streetview's People

Contributors

mattdesl avatar

Watchers

James Cloos 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.