Fast reverse geocoding without internet connection
Project description
coordinates2country-py
A Python port of the excellent coordinates2country Java library.
What country is at a particular latitude/longitude? This Python library tells you quickly, without using the Internet and without requiring any permission.
- Fast reverse geocoding
- Never needs an Internet connection, not even the first time
- Less than 100kB
Installation
pip install coordinates2country-py
Usage
from coordinates2country.coordinates2country import Coordinates2Country
c2c = Coordinates2Country()
# Get country name in English
print(c2c.country(50.1, 10.2)) # Output: Germany
# Get ISO country code
print(c2c.country_code(50.1, 10.2)) # Output: DE
# Get Wikidata QID
print(c2c.country_qid(50.1, 10.2)) # Output: 183
Credits
This is a Python port of the coordinates2country Java library. All credit for the original implementation and data goes to the original authors.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coordinates2country-1.0.9.tar.gz.
File metadata
- Download URL: coordinates2country-1.0.9.tar.gz
- Upload date:
- Size: 85.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6272106a5d6d6454453a9dc3e4326f664b8bafc5e864eac429cea5fbc544a97a
|
|
| MD5 |
9b2be6e130fb7de45d2c5e516af16d60
|
|
| BLAKE2b-256 |
a6598ba76699ef92964fde0d29082b9ba45cff713b37f59fc573094139ba96a9
|
File details
Details for the file coordinates2country-1.0.9-py3-none-any.whl.
File metadata
- Download URL: coordinates2country-1.0.9-py3-none-any.whl
- Upload date:
- Size: 83.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
094e95e37f0d49baa505cbb0a730727d53aafaffa3b2153f895dee6649e53c70
|
|
| MD5 |
023901d9a6be5a010049875f7629682d
|
|
| BLAKE2b-256 |
8f5a4c3d12c4d0947dcd0d381be517629bbbe293754fa63eddb8e05f3606d524
|