PyPelias - Geocoding and reverse geocoding with Pelias and Python
Project Description
After installing a planet build of Pelias PyGeo was returning endless errors, It was quicker for me to write this little python API wrapper than try and sort out what the issues where with PyGeo.
This package support geocoding and reverse geo coding to you're own Pelias server using requests and the Pelias API.
Requirements
A complete install of Pelias. I recommend the Docker env (https://github.com/pelias/docker).
Installation
install from https://pypi.org/project/pyPelias/
pip install pyPelias
Usage
import pyPelias
gisAPI = pyPelias('https://mydomain_or_IP_of_pelias')
# reverse geocode - get the location from lat long, in format ['lat', 'long']
loc = gisAPI.reverse(['45.533467', '-122.650095'])
print(loc)
# geocode - takes address, city, state, country in any form, raises exception if can't parse address
geocode = gisAPI.geocode('Alamogordo, New Mexico, United States')
print(geocode)
Notes
We welcome your feedback and support, raise github ticket if you want to report a bug. Need new features? Contact us on github
Metadata
Release files for pyPelias 0.1.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 |
|---|---|---|---|---|
| pyPelias-0.1.0.tar.gz | 2.0 kB | Without provenance | Details for pyPelias-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyPelias-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyPelias-0.1.0-py3-none-any.whl |
Total release size: 4.2 kB
Release files / pyPelias-0.1.0.tar.gz
| Download URL | pyPelias-0.1.0.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03455ac8faf9cbec0f0de6141d4dbd793e59f73b9dab23eab8774684b3be991b
|
|
BLAKE2b-256 checksum How to use checksums |
c75de2a5ff17aac8813fd6e6374cdbb0911f5846fc5765ac8d6d732d7cef1fdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / pyPelias-0.1.0-py3-none-any.whl
| Download URL | pyPelias-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a9e456d19bb9fd6dcb31c03159481e5d0126799cf5fbc729f6d207d972c5246
|
|
BLAKE2b-256 checksum How to use checksums |
a87f18c05618a58c6f2f6badd318c497e4eaec8fa9af47f6585fb32b3efb6077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Security for pyPelias 0.1.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.