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 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'}]
Metadata
Release files for reverse_geocoder 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| reverse_geocoder-1.5.1.tar.gz | 2.2 MB | Without provenance | Details |
Release files / reverse_geocoder-1.5.1.tar.gz
| Download URL | reverse_geocoder-1.5.1.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a2e781b5f69376d922b78fe8978f1350c84fce0ddb07e02c834ecf98b57c75c
|
|
BLAKE2b-256 checksum How to use checksums |
0b0fb7d5d4b36553731f11983e19e1813a1059ad0732c5162c01b3220c927d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for reverse_geocoder 1.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.