Lookup an address using an online provider
Project description
==============
Address Lookup
==============
|docs| |pypi-version|
This package allows you to lookup partial addresses using various online services, returning the address in a standardized form.
Supported services
------------------
- HERE API (API key required)
Soon-to-be-supported services
*****************************
- Google Maps API
Obtaining an API key
--------------------
HERE API key
************
Create a HERE developer account `here <https://developer.here.com>`_. Create a new project, and obtain a REST token. You can use this token with the Address Lookup library.
Usage
-----
HERE API usage
**************
.. code-block:: python
from address_lookup.clients import AddressLookupHereClient
API_KEY = "YOUR_API_KEY"
here_client = AddressLookupHereClient(API_KEY)
result = here_client.lookup_address("White House, USA")
print(result.asdict())
.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest&style=flat
:alt: Documentation Status
:scale: 100%
:target: https://address-lookup.readthedocs.io/en/latest/
.. |pypi-version| image:: https://img.shields.io/pypi/v/address-lookup
:alt: Documentation Status
:scale: 100%
:target: https://pypi.org/project/address-lookup/
Address Lookup
==============
|docs| |pypi-version|
This package allows you to lookup partial addresses using various online services, returning the address in a standardized form.
Supported services
------------------
- HERE API (API key required)
Soon-to-be-supported services
*****************************
- Google Maps API
Obtaining an API key
--------------------
HERE API key
************
Create a HERE developer account `here <https://developer.here.com>`_. Create a new project, and obtain a REST token. You can use this token with the Address Lookup library.
Usage
-----
HERE API usage
**************
.. code-block:: python
from address_lookup.clients import AddressLookupHereClient
API_KEY = "YOUR_API_KEY"
here_client = AddressLookupHereClient(API_KEY)
result = here_client.lookup_address("White House, USA")
print(result.asdict())
.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest&style=flat
:alt: Documentation Status
:scale: 100%
:target: https://address-lookup.readthedocs.io/en/latest/
.. |pypi-version| image:: https://img.shields.io/pypi/v/address-lookup
:alt: Documentation Status
:scale: 100%
:target: https://pypi.org/project/address-lookup/
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
address-lookup-0.0.6.tar.gz
(2.9 MB
view details)
Built Distribution
File details
Details for the file address-lookup-0.0.6.tar.gz
.
File metadata
- Download URL: address-lookup-0.0.6.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fc6a881e14b1f634f4b9e0c33c5e902655b9b8c5d3d2dfbe418de8d436810c6 |
|
MD5 | eaa107d6061e57d374a889764966d3a1 |
|
BLAKE2b-256 | 7775a90c2a7f8e02d56719e7bf66d017acf0250ae6110e4178dca8b068866a14 |
File details
Details for the file address_lookup-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: address_lookup-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0792b0c02231767b86b64a09fc927f71b481e9e339db08091822a80441f10f28 |
|
MD5 | f4ef42203d56e65d1394e0fdc40b2dc9 |
|
BLAKE2b-256 | 2d88c7689c8d91ecd8b3115ff1212efc13038a142934fd31121a562ad557e713 |