Skip to main content

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.

Reason this release was yanked:

Please update to the last version of here-geocoding >> pip install here-geocoding --upgrade

Project description

here-geocoding

https://img.shields.io/pypi/v/here-geocoding.svg Documentation Status Downloads Downloads

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

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.

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

here_geocoding-0.1.0.tar.gz (25.5 kB view details)

Uploaded Source

File details

Details for the file here_geocoding-0.1.0.tar.gz.

File metadata

  • Download URL: here_geocoding-0.1.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for here_geocoding-0.1.0.tar.gz
Algorithm Hash digest
SHA256 742b675408cd27c6f0076d3636729b18282f07d73288d251c653ba77b5e6ea0a
MD5 721e58fbe76fe9e0344ec6cfffcd711c
BLAKE2b-256 af9d4876af3797846c6578b769502e3ca43f0ba7b267ec66ac977c7d6ece55ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page