Skip to main content

A lightweight offline reverse geocoder implemented in Rust.

Project description

PyPI version Build Status

A lightweight offline reverse geocoder implemented in Rust with pyo3 python bindings.

Based on llambda/rust-reverse-geocoder and thampiman/reverse-geocoder.

Basic usage

pip install rgeocoder
>>> from rgeocoder import ReverseGeocoder
>>> rg = ReverseGeocoder()
>>> r = rg.nearest(41.891929, 12.511331)  # lat, lon
>>> print(r.name, r.cc)
'Rome IT'
>>> print(r.lat, r.lon)
41.89193 12.51133

Some locations include the first- and second-level administrative divisions:

>>> print(r.admin1)
'Latium'
>>> print(r.admin2)
'Citta metropolitana di Roma Capitale'

See http://download.geonames.org/export/dump/readme.txt for more information on the dataset.

License

MIT License

Credits

This package was created with Cookiecutter and the mckaymatt/cookiecutter-pypackage-rust-cross-platform-publish project template.

History

0.1.3 (2018-05-31)

  • Source distribution and Windows binary wheels.

0.1.2 (2018-05-03)

  • First release to PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
rgeocoder-0.1.3-cp27-cp27m-macosx_10_12_x86_64.whl (2.5 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp27-cp27m-manylinux1_i686.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp27-cp27m-manylinux1_x86_64.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp27-cp27mu-manylinux1_i686.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp27-cp27mu-manylinux1_x86_64.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp27-cp27m-win32.whl (2.4 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp27-cp27m-win_amd64.whl (2.4 MB) Copy SHA256 hash SHA256 Wheel cp27
rgeocoder-0.1.3-cp35-cp35m-macosx_10_12_x86_64.whl (2.5 MB) Copy SHA256 hash SHA256 Wheel cp35
rgeocoder-0.1.3-cp35-cp35m-manylinux1_i686.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp35
rgeocoder-0.1.3-cp35-cp35m-manylinux1_x86_64.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp35
rgeocoder-0.1.3-cp35-cp35m-win32.whl (2.4 MB) Copy SHA256 hash SHA256 Wheel cp35
rgeocoder-0.1.3-cp35-cp35m-win_amd64.whl (2.4 MB) Copy SHA256 hash SHA256 Wheel cp35
rgeocoder-0.1.3-cp36-cp36m-macosx_10_12_x86_64.whl (2.5 MB) Copy SHA256 hash SHA256 Wheel cp36
rgeocoder-0.1.3-cp36-cp36m-manylinux1_i686.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp36
rgeocoder-0.1.3-cp36-cp36m-manylinux1_x86_64.whl (3.1 MB) Copy SHA256 hash SHA256 Wheel cp36
rgeocoder-0.1.3-cp36-cp36m-win32.whl (2.4 MB) Copy SHA256 hash SHA256 Wheel cp36
rgeocoder-0.1.3-cp36-cp36m-win_amd64.whl (2.4 MB) Copy SHA256 hash SHA256 Wheel cp36
rgeocoder-0.1.3.tar.gz (2.2 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page