Simple Twisted interface to http://geocod.io
Project description
===============================
txgeocodio
===============================
An extremely bland Twisted client for http://geocod.io. It's really bland because their api is SO EASY TO USE.
Usage
------
```
import txgeocodio
txgecodio.configure('YOURAPIKEYHERE')
# Geocode some address and get a list of results
d = txgecodio.geocode('123 Main ST, 91702')
# d is a deferred with a list of results
# Parse an address into parts (no geo lookup is made)
d = txgecodio.parse('42370 Bob Hope Dr, Rancho Mirage, CA')
# d is a deferred with the results in a dict that look something like:
{
"address_components":
{"number": "42370",
"street": "Bob Hope",
"suffix": "Dr",
"city": "Rancho Mirage",
"state": "CA"
},
"formatted_address": "42370 Bob Hope Dr, Rancho Mirage, CA"
}
```
History
-------
0.1.0 ()
++++++++++++++++++
* First release on PyPI.
txgeocodio
===============================
An extremely bland Twisted client for http://geocod.io. It's really bland because their api is SO EASY TO USE.
Usage
------
```
import txgeocodio
txgecodio.configure('YOURAPIKEYHERE')
# Geocode some address and get a list of results
d = txgecodio.geocode('123 Main ST, 91702')
# d is a deferred with a list of results
# Parse an address into parts (no geo lookup is made)
d = txgecodio.parse('42370 Bob Hope Dr, Rancho Mirage, CA')
# d is a deferred with the results in a dict that look something like:
{
"address_components":
{"number": "42370",
"street": "Bob Hope",
"suffix": "Dr",
"city": "Rancho Mirage",
"state": "CA"
},
"formatted_address": "42370 Bob Hope Dr, Rancho Mirage, CA"
}
```
History
-------
0.1.0 ()
++++++++++++++++++
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
txgeocodio-0.1.0.tar.gz
(5.1 kB
view details)
File details
Details for the file txgeocodio-0.1.0.tar.gz.
File metadata
- Download URL: txgeocodio-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a653050cfbe44330cf6bbebc33dc4fa41fe6db15af78ffab7c7e2ade95f1e67
|
|
| MD5 |
d3e4e5c0a9c8667f7484a58a62c9b7ab
|
|
| BLAKE2b-256 |
dbb9ee23c6ad623276bd2a4bc5e841bbab83917142912b5e7d4eafd33b6e02c9
|