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
apt-get install python-numpy python-scipy
pip install reverse_engineer
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.0.tar.gz
(1.8 MB
view details)
File details
Details for the file reverse_geocode-1.0.tar.gz
.
File metadata
- Download URL: reverse_geocode-1.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6a766a13e66cfb3967d91913583b92d4a6ad66dfee77bc11e59ae9deede0028 |
|
MD5 | 5c54167104d300b6508262c2e658652f |
|
BLAKE2b-256 | e98a6101572765a078d7421bc1f7009dd138dc1cb02b9281e903ad7c564a68db |