A simple command line tool to help with geocoding country/region ISO 3166-2 codes
Project description
giso
A simple command line tool to help with geocoding country/region ISO 3166-2 codes.
Includes a public domain reference dataset from Natural Earth Data which is stored in GeoParquet format and is accessed with SedonaDB.
Installation
python -m pip install giso
Basic Usage
giso takes one of two inputs:
- A longitude/latitude coordinate pair. (Decimal degrees in WGS 1984 separated by a comma or a space.) Returns the corresponding ISO 3166-2 code.
giso -122.2483823, 37.8245529
# US-CA
- A valid ISO 3166-2 code. Returns the corresponding geometry as Well-Known Text (WKT).
giso US-CA
# MULTIPOLYGON (((-114.724285 32.712836, -114.764541 32.709839, [...]
Returns None if there are no hits.
giso can also be used as a Python package:
>>> import giso
>>> giso.reverse_geocode(103.8455041, 1.2936855)
'SG-01'
>>> giso.geocode("SG-01")
< POLYGON((103.898 1.305, 103.888 1.301, 103.853 1.277, 103.847 1.272, 103.8 ... >
References
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 giso-1.0.0.tar.gz.
File metadata
- Download URL: giso-1.0.0.tar.gz
- Upload date:
- Size: 11.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49be05da1d6561418031adfca797e9b0d91a7b46bd942f651c298a570094f01c
|
|
| MD5 |
e3f1a735c616e7014e56f4ceae74c2e2
|
|
| BLAKE2b-256 |
12ba633b2152cedb5820ef5a3de0d940866a77822a9595374131020c080a5792
|
Provenance
The following attestation bundles were made for giso-1.0.0.tar.gz:
Publisher:
python-publish.yml on corbel-spatial/giso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
giso-1.0.0.tar.gz -
Subject digest:
49be05da1d6561418031adfca797e9b0d91a7b46bd942f651c298a570094f01c - Sigstore transparency entry: 586036493
- Sigstore integration time:
-
Permalink:
corbel-spatial/giso@fe20646fe6d8ffb6ecdd1811c3cb9336da8769fe -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/corbel-spatial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fe20646fe6d8ffb6ecdd1811c3cb9336da8769fe -
Trigger Event:
release
-
Statement type:
File details
Details for the file giso-1.0.0-py3-none-any.whl.
File metadata
- Download URL: giso-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee30695182f0da2408b47114703978d96cbb4ca68b528c891e78ed3bf81989d6
|
|
| MD5 |
c90b7198fd6db3c5a16a16223791cb92
|
|
| BLAKE2b-256 |
3585fb40dc1a69ba827ab3bb90d3b8128d79e6171bc836c0df8d6ed4b88db20c
|
Provenance
The following attestation bundles were made for giso-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on corbel-spatial/giso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
giso-1.0.0-py3-none-any.whl -
Subject digest:
ee30695182f0da2408b47114703978d96cbb4ca68b528c891e78ed3bf81989d6 - Sigstore transparency entry: 586036514
- Sigstore integration time:
-
Permalink:
corbel-spatial/giso@fe20646fe6d8ffb6ecdd1811c3cb9336da8769fe -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/corbel-spatial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fe20646fe6d8ffb6ecdd1811c3cb9336da8769fe -
Trigger Event:
release
-
Statement type: