Reverse geocode the given latitude / longitude
Project description
Reverse Geocode
Reverse Geocode takes a latitude / longitude coordinate and returns the country and city. Example usage:
>>> import reverse_geocode
>>> coordinates = (-37.81, 144.96), (31.76, 35.21)
>>> reverse_geocode.search(coordinates)
[{'city': 'Melbourne', 'code': 'AU', 'country': 'Australia'},
{'city': 'Jerusalem', 'code': 'IL', 'country': 'Israel'}]
The module has a set of known geocoded locations and uses a k-d tree to efficiently find the nearest neighbour. This can be useful when you need to reverse geocode a large number of coordinates so a web API is not practical.
Install
Supports python 2 & 3:
pip install reverse-geocode
pip3 install reverse-geocode
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_geocode-1.4.1.tar.gz
(1.6 MB
view details)
File details
Details for the file reverse_geocode-1.4.1.tar.gz
.
File metadata
- Download URL: reverse_geocode-1.4.1.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ca8fdd529c999db4d344c2e4075f5dac7db7d3cc8aeb82709091ff340c11a6 |
|
MD5 | c415f31caa614d1b7aa90dc2cbc1c001 |
|
BLAKE2b-256 | 35849e4292b930fa6d3bdef96a154240f59bb60eb2893b63a088ccf9d1a6178a |