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.11.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.11.0
File
geocoordinates_rs-0.11.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.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
geocoordinates_rs-0.11.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
geocoordinates_rs-0.11.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size:1.7 MB

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

Download URL geocoordinates_rs-0.11.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 438.7 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c192db06113ab14e93dab08098ae4fe12e1aa515f6894ba75b794b72024f619c
BLAKE2b-256 checksum
How to use checksums
37f7e8a2a6f1df55a8b738695ddbdb602f15e96fcc96f1aa4679aaab892d74c9
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.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL geocoordinates_rs-0.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 432.7 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c584ff0b66e166b5646c339114bed84f268d7f454f8c9559f956a5eecc5e6d11
BLAKE2b-256 checksum
How to use checksums
332fd320cfc9703027b506e5da7804b60a132e3983072b5ffbbf8e54a5f8dd97
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.11.0-py3-none-macosx_11_0_arm64.whl

Download URL geocoordinates_rs-0.11.0-py3-none-macosx_11_0_arm64.whl
Size 395.3 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3fc9585aef4225dd56b63f8653bb74ba211bfbfd0c4ffe9542d5ffe55a5d2182
BLAKE2b-256 checksum
How to use checksums
62ab97b153f25dd1dbd109ba7761986aacbc400b7dc3079ca04fcf704a50ea44
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.11.0-py3-none-macosx_10_12_x86_64.whl

Download URL geocoordinates_rs-0.11.0-py3-none-macosx_10_12_x86_64.whl
Size 401.8 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9c8481c4c858b9c7f4c62adc49b32256d993f1ca7186371aa84539d336ca7107
BLAKE2b-256 checksum
How to use checksums
d0ffa705625c7507f09e1bae442a90843f2eadcdb9d1e0c83314c4bf92003ed0
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

0.13.0

4 release files

0.12.0

4 release files

This release

0.11.0 This release

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