Skip to main content

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

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)

Source distribution for pyPelias 0.1.0
File Size Uploaded
pyPelias-0.1.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyPelias 0.1.0
File Interpreter ABI Platform
pyPelias-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page