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/.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (798.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (800.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

geocoordinates_rs-0.14.1-py3-none-macosx_11_0_arm64.whl (729.8 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

geocoordinates_rs-0.14.1-py3-none-macosx_10_12_x86_64.whl (734.1 kB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 06f380506d1610455d7835b183ab38ea104294bcd6f8e23ae37b8e9ed6afd174
MD5 f7e5e219dcb7dd0b691d21992f7ffa9d
BLAKE2b-256 a87df1f0a34284ef0d8f291e7386c64e8809511e15dc24c51a9d5cd19f2b000c

See more details on using hashes here.

Provenance

The following attestation bundles were made for geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yml on justin13888/geocoordinates-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 30208b48141b721802b9fc6b04ebf99e68ebd28e8c5c46e4e993bf5b87fbb5fc
MD5 ed66b4baa81ff188ff0c3a926f9ed1b4
BLAKE2b-256 894d177f6dd7060c384020344345b0774c970a4965125b9e59dcd67a5d875a69

See more details on using hashes here.

Provenance

The following attestation bundles were made for geocoordinates_rs-0.14.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-python.yml on justin13888/geocoordinates-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geocoordinates_rs-0.14.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geocoordinates_rs-0.14.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e072722e6bb34a0f51c6739efa2047d17e16c36be3eaaf41c9a88e0d3737c051
MD5 d06464353712e483f0cd7fe6a3b3f33a
BLAKE2b-256 6dea21acc1a3272b272f7a478eac9294fd356385cc54cba96f66672524f9dced

See more details on using hashes here.

Provenance

The following attestation bundles were made for geocoordinates_rs-0.14.1-py3-none-macosx_11_0_arm64.whl:

Publisher: release-python.yml on justin13888/geocoordinates-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geocoordinates_rs-0.14.1-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for geocoordinates_rs-0.14.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7d9baadeca09ca736df00f014ee6b6b278842b282e28d7eb3982ddc92256f4e4
MD5 1be0f09c2c0292730b523a212edcd414
BLAKE2b-256 a97dba1dff0bb3bb68e5ce0332705020b45f6f96e45ea551e45157797c3a681b

See more details on using hashes here.

Provenance

The following attestation bundles were made for geocoordinates_rs-0.14.1-py3-none-macosx_10_12_x86_64.whl:

Publisher: release-python.yml on justin13888/geocoordinates-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.14.1 This release

4 files

0.14.0

4 files

0.13.0

4 files

0.12.0

4 files

0.11.0

4 files

0.10.0

4 files

0.9.0

4 files

0.8.0

4 files

0.1.1

4 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