Skip to main content

geocoordinates (language bindings)

UniFFI bindings for the geocoordinates geospatial library — China datums (GCJ-02 / BD-09), geodetic transforms.

A deliberately curated, flattened subset of the Rust API is exposed across the FFI boundary to Python, Kotlin, Swift, and TypeScript (Java consumes the Kotlin/JVM artifact). Generics, traits, operator overloads, and From/TryFrom conversions do not cross FFI, so they are re-expressed as flat records and free functions; approximate inverses keep their _fast / _refined names and carry an explicit max_error_m.

Surface

WGS-84 ↔ GCJ-02 ↔ BD-09 conversions (exact forward, approximate inverse with error bounds), Baidu Web Mercator, out_of_china, and haversine distance.

import geocoordinates_ffi as gc

gcj = gc.wgs84_to_gcj02(gc.Wgs84(lat=39.915, lon=116.404))
wgs = gc.gcj02_to_wgs84_refined(gcj)          # approximate inverse
print(wgs.lat, wgs.lon, "±", wgs.max_error_m, "m")

The WebAssembly/TypeScript bindings live in web/.

Release files for geocoordinates-rs 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for geocoordinates-rs 0.13.0
File
geocoordinates_rs-0.13.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
geocoordinates_rs-0.13.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
geocoordinates_rs-0.13.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
geocoordinates_rs-0.13.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size:2.9 MB

Release files / geocoordinates_rs-0.13.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL geocoordinates_rs-0.13.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 757.8 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5bdc07506fa67e4c0ef4e089f960d45803ce70cf1883c38986b7579fad29499d
BLAKE2b-256 checksum
How to use checksums
6e99585cf64c2a7ece40d14d04f487419d4632ac71a8d061b6d9655cab3e806e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release files / geocoordinates_rs-0.13.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL geocoordinates_rs-0.13.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 758.2 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1ff596fe169eccd83f5abe25255dbdd0edd9e05833eb5258b96fc4aaf4b9fdc5
BLAKE2b-256 checksum
How to use checksums
d47c475f01512f85da1d2831ef243c5fbf958eed3810bdde3faeca3857458257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release files / geocoordinates_rs-0.13.0-py3-none-macosx_11_0_arm64.whl

Download URL geocoordinates_rs-0.13.0-py3-none-macosx_11_0_arm64.whl
Size 692.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
90d40990e9b408c30a3bcb6be7e5918f0beb453c065360e528ea7e2d3a9dd0bc
BLAKE2b-256 checksum
How to use checksums
e4ba4eb5787c60b894fe2794424e2cb5c93d5cd65cc32bf4f9cea7b9a8003ac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release files / geocoordinates_rs-0.13.0-py3-none-macosx_10_12_x86_64.whl

Download URL geocoordinates_rs-0.13.0-py3-none-macosx_10_12_x86_64.whl
Size 698.1 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9b6a58ebcb5989ee46b46dbaf2570b6ac4088a5b8bcbfde599e6a3b19c1785a6
BLAKE2b-256 checksum
How to use checksums
47338e82211c496b68b0c6798b06b223e97fbc6d1d1229bc4353a98dadf4e473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.14.0

4 release files

This release

0.13.0 This release

4 release files

0.12.0

4 release files

0.11.0

4 release files

0.10.0

4 release files

0.9.0

4 release files

0.8.0

4 release files

0.1.1

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page