A simple python wrapper for the Pelias API for geocoding and reverse geocoding
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyPelias-0.1.0.tar.gz
.
File metadata
- Download URL: pyPelias-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03455ac8faf9cbec0f0de6141d4dbd793e59f73b9dab23eab8774684b3be991b |
|
MD5 | 3c9f13eea1220d8b1b0454fb6fa1471d |
|
BLAKE2b-256 | c75de2a5ff17aac8813fd6e6374cdbb0911f5846fc5765ac8d6d732d7cef1fdc |
File details
Details for the file pyPelias-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyPelias-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9e456d19bb9fd6dcb31c03159481e5d0126799cf5fbc729f6d207d972c5246 |
|
MD5 | 80bad42654f1a79958a907dbf0dc3bbf |
|
BLAKE2b-256 | a87f18c05618a58c6f2f6badd318c497e4eaec8fa9af47f6585fb32b3efb6077 |