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.4.tar.gz
(2.9 MB
view hashes)
Built Distribution
Close
Hashes for address_lookup-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63cc0988b1d592d6b276df25cbc2fe4562056c6bceecec5c1bfbc545cea075e |
|
MD5 | bfc2e82765270fe8cbca87efab750b1f |
|
BLAKE2b-256 | 20f691b893e274fcd767681dcf8428c1f52b8cd12f4d6b9b9c1baca78f37b2d8 |