Skip to content

Ziptastic/ziptastic-python

Repository files navigation

Official Ziptastic Python Library

Python library for GetZiptastic.com

https://readthedocs.org/projects/ziptastic-python/badge/?version=latest https://travis-ci.org/Ziptastic/ziptastic-python.svg?branch=master https://circleci.com/gh/Ziptastic/ziptastic-python.png

Installation

>>> pip install ziptastic-python

Running tests

$ nosetests

Running tests with coverage

$ nosetests --with-coverage --cover-package=ziptastic

Usage

Forward geocoding

>>> from ziptastic import Ziptastic
>>> api = Ziptastic('<your api key>')
>>> result = api.get_from_postal_code('48867')

Reverse geocoding

>>> from ziptastic import Ziptastic
>>> api = Ziptastic('<your api key>')
>>> result = api.get_from_coordinates('42.9934', '-84.1595')