Offline reverse geocoder
Project description
Reverse Geocoder takes a latitude / longitude coordinate and returns the nearest town/city. This library improves on existing libraries called reverse_geocode developed by Richard Penman & reverse_geocoder by Ajay Thampi in the following ways:
- support init non-singleton instance of RGeocoder to support different stream simultaneously (creating RGeocoderImpl class to support that)
- added the capability change the header columns when loading custom stream and loaded different schemas
- added query_dist to support returning distance in addtion to the reverse geocoding data itself
- added do_extract to trigger extraction for any Geonames file, e.g: 1000, 15000 etc
- removed win32 and python2 support. added utility function to load data from files/buffers
- Example usage:
>>> import rvgeocoder as rvg >>> coordinates = (41.852968, -87.725730), (48.836364, 2.357422) >>> rvg.search(coordinates) [OrderedDict([('lat', '41.84559'), ('lon', '-87.75394'), ('name', 'Cicero'), ('admin1', 'Illinois'), ('admin2', 'Cook County'), ('cc', 'US')]), OrderedDict([('lat', '48.85341'), ('lon', '2.3488'), ('name', 'Paris'), ('admin1', 'Ile-de-France'), ('admin2', 'Paris'), ('cc', 'FR')])]
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size rvgeocoder-1.0.5-py3-none-any.whl (2.3 MB) | File type Wheel | Python version py3 | Upload date | Hashes View hashes |
Filename, size rvgeocoder-1.0.5.tar.gz (2.2 MB) | File type Source | Python version None | Upload date | Hashes View hashes |
Close
Hashes for rvgeocoder-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 659b7f6460b1346091cb5991bd7f1ff76797bff120b611813b45ec5da95b0ac3 |
|
MD5 | 9fafe5711a24ddae42f1fb74540592a8 |
|
BLAKE2-256 | 99ab7ada7e9d5e2fdb133c6556b3f228072165990001682f405cafa307f5ec6a |