Simple wrapper around postcodes.io
Python
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0bc5d78 May 21, 2016
Permalink
Failed to load latest commit information.
lib Absolute __init__.py import May 21, 2016
test
.gitignore
.travis.yml Run nosetests tests against Python3 May 21, 2016
MANIFEST.in added manifest file Mar 21, 2015
README.md change travis. Apr 27, 2015
setup.py v 0.1.1 Mar 24, 2015

README.md

Postcodes.io

Build Status

A simple wrapper around postcodes.io

Installation


To install Postcode.io, simply:

$ pip install postcode.io

Usage

from lib import PostCodeClient

Create new instance of the Postcodes

client = PostCodeClient()

Lookup a postcode example

postcode = client.getLookupPostCode('OX49 5NU')

Lookup a postcode example

postcode = client.getBulkReverseGecoding('{
            "geolocations": [{
                                 "longitude": 0.629834723775309,
                                 "latitude": 0.629834723775309
                             }, {
                                 "longitude": -2.49690382054704,
                                 "latitude": -2.49690382054704,
                                 "radius": 1000,
                                 "limit": 5
                             }]
        }')

For more details see the documentation on postcodes.io

Contributing

I am not expert in pyhton if you want to contribute please pull request :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request