Skip to main content

Fast, offline reverse geocoder

Project description

Reverse Geocoder

Reverse Geocoder takes a latitude / longitude coordinate and returns the nearest town/city. This library improves on an existing library called reverse_geocode developed by Richard Penman in the following ways:

  1. Besides city and country, this library also returns the administrative 1 & 2 regions, latitude and longitude
  2. The performance is much faster since a parallelized K-D tree is implemented (See https://github.com/thampiman/reverse-geocoder for performance comparison)

Supports Python 2 and 3. You can also load a custom data source. Fore more help, see https://github.com/thampiman/reverse-geocoder.

Example usage: >>> import reverse_geocoder_whl as rg >>> coordinates = (51.5214588,-0.1729636),(9.936033, 76.259952),(37.38605,-122.08385) >>> rg.search(coordinates) [{'name': 'Bayswater', 'cc': 'GB', 'lat': '51.51116', 'lon': '-0.18426', 'admin1': 'England', 'admin2': 'Greater London'}, {'name': 'Cochin', 'cc': 'IN', 'lat': '9.93988', 'lon': '76.26022', 'admin1': 'Kerala', 'admin2': 'Ernakulam'}, {'name': 'Mountain View', 'cc': 'US', 'lat': '37.38605', 'lon': '-122.08385', 'admin1': 'California', 'admin2': 'Santa Clara County'}]

Changelog

[1.5.3] Limit scipy to >=0.17.1,<1.11 (previously >=0.17.1) due to a breaking change in SciPy 1.11. [1.5.2] Re-release to original project with Wheels.

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

reverse_geocoder_whl-1.5.3.tar.gz (2.3 MB view hashes)

Uploaded Source

Built Distributions

reverse_geocoder_whl-1.5.3-pp39-pypy39_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (2.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

reverse_geocoder_whl-1.5.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (2.3 MB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

reverse_geocoder_whl-1.5.3-pp38-pypy38_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (2.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

reverse_geocoder_whl-1.5.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (2.3 MB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

reverse_geocoder_whl-1.5.3-cp311-cp311-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

reverse_geocoder_whl-1.5.3-cp311-cp311-musllinux_1_1_i686.whl (3.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

reverse_geocoder_whl-1.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

reverse_geocoder_whl-1.5.3-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (2.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

reverse_geocoder_whl-1.5.3-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

reverse_geocoder_whl-1.5.3-cp311-cp311-macosx_10_9_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

reverse_geocoder_whl-1.5.3-cp310-cp310-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

reverse_geocoder_whl-1.5.3-cp310-cp310-musllinux_1_1_i686.whl (3.0 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

reverse_geocoder_whl-1.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

reverse_geocoder_whl-1.5.3-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (2.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

reverse_geocoder_whl-1.5.3-cp310-cp310-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

reverse_geocoder_whl-1.5.3-cp310-cp310-macosx_10_9_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

reverse_geocoder_whl-1.5.3-cp39-cp39-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

reverse_geocoder_whl-1.5.3-cp39-cp39-musllinux_1_1_i686.whl (3.0 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

reverse_geocoder_whl-1.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

reverse_geocoder_whl-1.5.3-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (2.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

reverse_geocoder_whl-1.5.3-cp39-cp39-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

reverse_geocoder_whl-1.5.3-cp39-cp39-macosx_10_9_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

reverse_geocoder_whl-1.5.3-cp38-cp38-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

reverse_geocoder_whl-1.5.3-cp38-cp38-musllinux_1_1_i686.whl (3.0 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

reverse_geocoder_whl-1.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

reverse_geocoder_whl-1.5.3-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (2.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

reverse_geocoder_whl-1.5.3-cp38-cp38-macosx_11_0_arm64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

reverse_geocoder_whl-1.5.3-cp38-cp38-macosx_10_9_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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