<commit_before>google_streetview
=================

| <NAME>
| <EMAIL>

* `Documentation <https://rrwen.github.io/google_streetview>`__

A command line tool and module for Google Street View Image API.

.. image:: https://badge.fury.io/py/google-streetview.svg
    :target: https://badge.fury.io/py/google-streetview
.. image:: https://travis-ci.org/rrwen/google_streetview.svg?branch=master
    :target: https://travis-ci.org/rrwen/google_streetview
.. image:: https://coveralls.io/repos/github/rrwen/google_streetview/badge.svg?branch=master
    :target: https://coveralls.io/github/rrwen/google_streetview?branch=master
.. image:: https://img.shields.io/github/stars/rrwen/google_streetview.svg
    :target: https://github.com/rrwen/google_streetview/stargazers
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target: https://raw.githubusercontent.com/rrwen/google_streetview/master/LICENSE
.. image:: https://img.shields.io/badge/donate-Donarbox-yellow.svg
    :target: https://donorbox.org/rrwen
.. image:: https://img.shields.io/badge/donate-PayPal-yellow.svg
    :target: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NQNSAHK5X46D2
.. image:: https://img.shields.io/twitter/url/https/github.com/rrwen/google_streetview.svg?style=social
    :target: https://twitter.com/intent/tweet?text=A%20command%20line%20tool%20and%20module%20for%20Google%20Street%20View%20Image%20API:%20https://github.com/rrwen/google_streetview%20%23python%20%23pip

Install
-------

1. Install `Python <https://www.python.org/downloads/>`_
2. Install `google_streetview <https://pypi.python.org/pypi/google-streetview>`__ via ``pip``

::
  
  pip install google_streetview
  
For the latest developer version, see `Developer Install`_.
  
Usage
-----

For help in the console::
  
  google_streetview -h
  
Ensure that a `Google API developer key <https://developers.google.com/api-client-library/python/auth/api-keys>`__ is set::

  google_streetview -s key="your_dev_key"

Search street view for latitude and longitude ``46.414382,10.013988``::
  
  google_streetview "46.414382,10.013988"
  
Save images to a directory::

  google_streetview --location="46.414382,10.013988" --save_downloads=downloads
  
Obtain a 360 panorama by rotating the camera ``heading`` given a 90 degree field of vision ``fov``::

  google_streetview --location="46.414382,10.013988" --fov=90 --heading=0;90;180;270
  
Use as a Python module:

.. code-block:: python

  # Import google_streetview for the api module
  import google_streetview.api
  
  # Define parameters for street view api
  params = [{
    'size': '600x300', # max 640x640 pixels
    'location': '46.414382,10.013988',
    'heading': '151.78',
    'pitch': '-0.76',
    'key': 'your_dev_key'
  }]
  
  # Create a results object
  results = google_streetview.api.results(params)
  
  # Download images to directory 'downloads'
  results.download_links('downloads')
  
For more usage details, see the `Documentation <https://rrwen.github.io/google_streetview>`__.

Contributions
-------------

1. Reports for issues and suggestions can be made using the `issue submission <https://github.com/rrwen/google_streetview/issues>`_
2. Code contributions are submitted via `pull requests <https://github.com/rrwen/google_streetview/pulls>`_

See `CONTRIBUTING.rst <https://github.com/rrwen/google_streetview/blob/master/CONTRIBUTING.rst>`_ for more details.
  
Implementation
--------------

The package `google_streetview <https://pypi.python.org/pypi/google-streetview>`__ uses the following components:

+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+
| Component                                                                                                         | Purpose                                                                 |  |
+===================================================================================================================+=========================================================================+==+
| `Google Street View Image API <https://developers.google.com/maps/documentation/streetview>`_                     | API for Google Street View images                                       |  |
+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+
| `google_streetview.api <https://github.com/rrwen/google_streetview/blob/master/google_streetview/api.py>`_        | Module for interfacing with Google Street View Image API using requests |  |
+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+
| `requests <https://pypi.python.org/pypi/requests>`_                                                               | Download and get URLs from Google Street View Image API                 |  |
+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+

::
  
  Google Street View Image API     <-- API for Street View Images
               |
      google_streetview.api        <-- URL Request with query string
               |
            request                <-- Download URLs and images
  
For more information, see `NOTES.rst <https://github.com/rrwen/google_streetview/blob/master/NOTES.rst>`_.
<commit_msg>Update api pricing change notice<commit_after>google_streetview
=================

| <NAME>
| <EMAIL>

* `Documentation <https://rrwen.github.io/google_streetview>`__

A command line tool and module for Google Street View Image API.

.. image:: https://badge.fury.io/py/google-streetview.svg
    :target: https://badge.fury.io/py/google-streetview
.. image:: https://travis-ci.org/rrwen/google_streetview.svg?branch=master
    :target: https://travis-ci.org/rrwen/google_streetview
.. image:: https://coveralls.io/repos/github/rrwen/google_streetview/badge.svg?branch=master
    :target: https://coveralls.io/github/rrwen/google_streetview?branch=master
.. image:: https://img.shields.io/github/stars/rrwen/google_streetview.svg
    :target: https://github.com/rrwen/google_streetview/stargazers
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target: https://raw.githubusercontent.com/rrwen/google_streetview/master/LICENSE
.. image:: https://img.shields.io/badge/donate-Donarbox-yellow.svg
    :target: https://donorbox.org/rrwen
.. image:: https://img.shields.io/badge/donate-PayPal-yellow.svg
    :target: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NQNSAHK5X46D2
.. image:: https://img.shields.io/twitter/url/https/github.com/rrwen/google_streetview.svg?style=social
    :target: https://twitter.com/intent/tweet?text=A%20command%20line%20tool%20and%20module%20for%20Google%20Street%20View%20Image%20API:%20https://github.com/rrwen/google_streetview%20%23python%20%23pip

*Note: Google has changed their `StreetView API pricing plans <https://developers.google.com/maps/documentation/streetview/usage-and-billing>`__ and it seems it is no longer free (last checked on March 5, 2019)*

Install
-------

1. Install `Python <https://www.python.org/downloads/>`_
2. Install `google_streetview <https://pypi.python.org/pypi/google-streetview>`__ via ``pip``

::
  
  pip install google_streetview
  
For the latest developer version, see `Developer Install <https://github.com/rrwen/google_streetview/blob/master/NOTES.rst#developer-install>`_.
  
Usage
-----

For help in the console::
  
  google_streetview -h
  
Ensure that a `Google API developer key <https://developers.google.com/api-client-library/python/auth/api-keys>`__ is set::

  google_streetview -s key="your_dev_key"

Search street view for latitude and longitude ``46.414382,10.013988``::
  
  google_streetview "46.414382,10.013988"
  
Save images to a directory::

  google_streetview --location="46.414382,10.013988" --save_downloads=downloads
  
Obtain a 360 panorama by rotating the camera ``heading`` given a 90 degree field of vision ``fov``::

  google_streetview --location="46.414382,10.013988" --fov=90 --heading=0;90;180;270
  
Use as a Python module:

.. code-block:: python

  # Import google_streetview for the api module
  import google_streetview.api
  
  # Define parameters for street view api
  params = [{
    'size': '600x300', # max 640x640 pixels
    'location': '46.414382,10.013988',
    'heading': '151.78',
    'pitch': '-0.76',
    'key': 'your_dev_key'
  }]
  
  # Create a results object
  results = google_streetview.api.results(params)
  
  # Download images to directory 'downloads'
  results.download_links('downloads')
  
For more usage details, see the `Documentation <https://rrwen.github.io/google_streetview>`__.

Contributions
-------------

1. Reports for issues and suggestions can be made using the `issue submission <https://github.com/rrwen/google_streetview/issues>`_
2. Code contributions are submitted via `pull requests <https://github.com/rrwen/google_streetview/pulls>`_

See `CONTRIBUTING.rst <https://github.com/rrwen/google_streetview/blob/master/CONTRIBUTING.rst>`_ for more details.
  
Implementation
--------------

The package `google_streetview <https://pypi.python.org/pypi/google-streetview>`__ uses the following components:

+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+
| Component                                                                                                         | Purpose                                                                 |  |
+===================================================================================================================+=========================================================================+==+
| `Google Street View Image API <https://developers.google.com/maps/documentation/streetview>`_                     | API for Google Street View images                                       |  |
+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+
| `google_streetview.api <https://github.com/rrwen/google_streetview/blob/master/google_streetview/api.py>`_        | Module for interfacing with Google Street View Image API using requests |  |
+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+
| `requests <https://pypi.python.org/pypi/requests>`_                                                               | Download and get URLs from Google Street View Image API                 |  |
+-------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+--+

::
  
  Google Street View Image API     <-- API for Street View Images
               |
      google_streetview.api        <-- URL Request with query string
               |
            request                <-- Download URLs and images
  
For more information, see `NOTES.rst <https://github.com/rrwen/google_streetview/blob/master/NOTES.rst>`_.

{'fraction_non_alphanumeric': 0.2765375074843897, 'fraction_numerical': 0.027114874689932428, 'mean_word_length': 1.9251938954215662, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 35, 'https://': 62, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1712269', 'n_tokens_mistral': 3397, 'n_tokens_neox': 2991, 'n_words': 611}