here-geocoding
The “here-geocoding” package is a Python library designed to streamline the process of converting addresses stored in an Excel (xlsx) file into latitude and longitude coordinates. It provides a convenient solution for geocoding large sets of addresses using the HERE geocoding service.
The package is based on the: https://github.com/heremaps/here-location-services-python
Free software: MIT license
Documentation: https://here-geocoding.readthedocs.io.
How to install
Environments -> base (root) -> open terminal -> pip install here-geocoding
pip install here-geocoding
Example
Find the api key: https://platform.here.com/admin/apps/
from here_geocoding import geocoding
api_key = 'YOUR API KEY' # OK
d = geocoding(api_key=api_key)
# Example 1
lng, lat = d.address_to_lnglat(address='1 Panepistimiou Ave., Aglantzia, 2109, Nicosia, Cyprus')
print(lng, lat)
# Example 2
lng, lat = d.address_to_lnglat(address='Perikleous 94, Nicosia',
bbox=[33.34597224, 35.13605854, 33.36261015, 35.14613025])
print(lng, lat)
# Example 3
data_geojson = d.address_to_lnglat(address='1 Panepistimiou Ave., Aglantzia, 2109, Nicosia, Cyprus', geojson=True)
print(data_geojson)
# Example 4
# using as example the csv file from: https://github.com/geocommons/geocoder/blob/master/test/data/address-sample.csv
d.geocode_excel(file_path='address-sample.xlsx', start_row=-1, end_row=20, address_column='address', bbox=None,
to_crs=None, export_file_name='test', export_file_type='csv')
# Example 5
d.geocode_excel(file_path='address-sample.xlsx', start_row=-1, end_row=20, address_column='address', bbox=None,
to_crs=None, export_file_name='test', export_file_type='geojson')
Features
TODO
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2023-06-09)
First release on PyPI.
Metadata
Release files for here-geocoding 0.3.0
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 |
|---|---|---|---|---|
| here_geocoding-0.3.0.tar.gz | 25.6 kB | Without provenance | Details for here_geocoding-0.3.0.tar.gz |
Release files / here_geocoding-0.3.0.tar.gz
| Download URL | here_geocoding-0.3.0.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32ab2303d79c93f1f23393cea1fda6dcaec35fdf366c322c7c1dd5f93b73ad2a
|
|
BLAKE2b-256 checksum How to use checksums |
4ad1f7bace84a939679ad9a0bc51164cc9151d650afb266331d42f993fff6a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for here-geocoding 0.3.0
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.