geocoding-api-extract
This package makes it easy to connect to the US GeoCoding api and extract data from a large set of addresses. It batches up the request for querying the api and returns the results in a Pandas DataFrame as a result. The US geocoding api does accept batches but it does not work unless you have more address details like zipcode. This script allows you to look up address details using only street address, city, and state.
Install
pip install geocoding_api_extract
Usage
The following code will retrieve a DataFrame with the following columns: ['address', 'state', 'county', 'tract', 'cent_lat', 'cent_lon','us_zip'].
import geocoding_api_extract as geox
tmp_folder = "tmp"
addr_data = {'address': ['6021 CERVINUS RUN', "4008 VIVAS LN", "7612 CAYENNE LN"],
'city': 'Austin',
'state': 'TX'}
result = geox.extract_address_details(addr_data['address'], addr_data['city'], addr_data['state'],
tmp_folder)
geox.remove_tmp_files('Austin', 'TX', 'tmp')
I have also included a larger sample to try this out in the 'sample_data' folder.
import pandas as pd
import geocoding_api_extract as geox
tmp_folder = "tmp"
df = pd.read_parquet('sample_data/addresses_sample.parquet.gzip')
addresses = df['address']
city = 'Austin'
state = 'TX'
result = geox.extract_address_details(addresses, city, state,
tmp_folder)
geox.remove_tmp_files('Austin', 'TX', 'tmp')
Metadata
Release files for geocoding-api-extract 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geocoding_api_extract-0.0.2.tar.gz | 5.5 kB | Without provenance | Details for geocoding_api_extract-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geocoding_api_extract-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for geocoding_api_extract-0.0.2-py3-none-any.whl |
Total release size: 12.1 kB
Release files / geocoding_api_extract-0.0.2.tar.gz
| Download URL | geocoding_api_extract-0.0.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e406a5a337b3ac5c7c5ddd7e99600b76d9e93ba556b74799157c9be8cf81813c
|
|
BLAKE2b-256 checksum How to use checksums |
0dde0a45c6cc779461424e1ba66310cb4234b27c7ba633140a420d27976b4805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
|
Release files / geocoding_api_extract-0.0.2-py3-none-any.whl
| Download URL | geocoding_api_extract-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09c1c8ce13c667cb509206008413fbe27a69447e90baaf1d06e9fdbb38d9616b
|
|
BLAKE2b-256 checksum How to use checksums |
54b12f95691370d6bdb70ce3b2d4be2de9dba9a62a640e4b9f803f5e1b4f4c2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
|
Security for geocoding-api-extract 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.