insightindustry / walkscore-api

(Unofficial) Python bindings for the WalkScore API
http://walkscore-api.readthedocs.org
MIT License
1 stars 1 forks source link

#################################################### The WalkScore Library ####################################################

(Unofficial) Python Bindings for the WalkScore API

.. list-table:: :widths: 10 90 :header-rows: 1

The WalkScore Library is a Python library that provides Python bindings for the WalkScore API <https://www.walkscore.com/>_. It enables you to retrieve WalkScores, TransitScores, and BikeScores from the API within your Python code in Python versions 3.6 and higher.

.. warning::

The WalkScore Library is completely unaffiliated with WalkScore <http://www.walkscore.com>_. It is entirely unofficial and was developed based on publicly available documentation of the WalkScore APIs published to the WalkScore website. Use of WalkScore is subject to WalkScore's licenses and terms of service, and this library is not endorsed by WalkScore or any affiliates thereof.

COMPLETE DOCUMENTATION: http://walkscore-api.readthedocs.org/en/latest/index.html

.. contents:: :depth: 3 :backlinks: entry



Installation


To install the WalkScore Library, just execute:

.. code:: bash

$ pip install walkscore-api

Dependencies

.. list-table:: :widths: 100 :header-rows: 1


Key WalkScore Features



Hello, World and Basic Usage


  1. Import the WalkScore API

.. code-block:: python

from walkscore import WalkScoreAPI

  1. Initialize the API

You can either use a single object to communicate with all of the available WalkScore APIs, or initialize a single object for each API:

.. code-block:: python

api_key = 'YOUR API KEY GOES HERE'

walkscore_api = WalkScoreAPI(api_key = api_key)

  1. Retrieve a Score

.. code-block:: python

address = '123 Anyplace St Anywhere, AK 12345'

result = walkscore_api.get_score(latitude = 123.45, longitude = 54.321, address = address)

the WalkScore for the location

result.walk_score

the TransitScore for the location

result.transit_score

the BikeScore for the location

result.bike_score



Questions and Issues


You can ask questions and report issues on the project's Github Issues Page <https://github.com/insightindustry/walkscore-api/issues>_



Contributing


We welcome contributions and pull requests! For more information, please see the Contributor Guide <https://walkscore-api.readthedocs.io/en/latest/contributing.html>_.



Testing


We use TravisCI <http://travisci.org> for our build automation and ReadTheDocs <https://readthedocs.org> for our documentation.

Detailed information about our test suite and how to run tests locally can be found in our Testing Reference <https://walkscore-api.readthedocs.io/en/latest/testing.html>_.



License


WalkScore is made available under an MIT License <https://walkscore-api.readthedocs.io/en/latest/license.html>_.