georgio
Fast geo Rust helper functions for Python.
Great Circle
To get the great circle distance between two points in meters, this function will use the IUGG mean Earth radius.
distance_in_meters = georgio.great_circle_distance(lon1, lat1, lon2, lat2)
If you want to provide your own radius in meters, you can use this function instead.
distance_in_meters = georgio.great_circle_distance_with_radius(lon1, lat1, lon2, lat2, radius_in_meters)
Line Of Bearing (LOB)
Returns the destination coordinates based on a starting position, bearing, and distance in meters. Bearing is in degrees, clockwise from north. It uses the IUGG mean Earth radius.
dest_lon, dest_lat = georgio.line_of_bearing(start_lon, start_lat, bearing_in_degrees, distance_in_meters)
If you want to provide your own radius in meters, you can use this function instead.
dest_lon, dest_lat = georgio.line_of_bearing_with_radius(start_lon, start_lat, bearing_in_degrees, distance_in_meters, radius_in_meters)
Bounding Box
This function will return a bounding box that encompasses the specified distance around a center point. Note that the bounding box will never extend across the antimeridian (longitude +/-180), below latitude -90, or above latitude 90.
west, south, east, north = georgio.bounding_box_for_point(lon, lat, distance_in_meters)
Web Mercator
To get the longitude/latitude bounds of a Web Mercator tile, use the following function, which will return the values in west, south, east, north order.
west, south, east, north = georgio.wm_bounds(x, y, z)
To get the upper left corner of a tile in longitude, latitude order, use the following function.
longitude, latitude = georgio.wm_upper_left(x, y, z)
To get a bounding box that surrounds a tile at a certain distance, use the following function. This can be useful when searching for centerpoints of objects that might be outside of the tile, where the object might extend into the tile. Note that the bounding box size is calculated in the WGS-84 projection based on the tile's longitude/latitude bounds, since Web Mercator is notoriously bad for calculating sizes/distances. Also note that the bounding box will never extend across the antimeridian (longitude +/-180), below latitude -90, or above latitude 90.
west, south, east, north = georgio.wm_tile_expanded_bbox(x, y, z, search_distance_in_meters)
Metadata
Release files for georgio 2024.247.861
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 1.2 MB
Release files / georgio-2024.247.861-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | georgio-2024.247.861-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 237.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5d1bd5d7d32628365055ed91fa19ff3e8d63067c74c60eea34236b72b2de19e3
|
|
BLAKE2b-256 checksum How to use checksums |
087f97913a7d8749cc074701249765e41795590fe1f49e6ebfe58764f6a12df5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / georgio-2024.247.861-cp311-none-win_amd64.whl
| Download URL | georgio-2024.247.861-cp311-none-win_amd64.whl |
|---|---|
| Size | 112.2 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
38e0e7567739c946f8e402d47761a86048e49c623698fd606ea02e001572d98f
|
|
BLAKE2b-256 checksum How to use checksums |
04a1e88362978ccada3a22c151778b8518829ac72a2d2bf88ee42fc28705af41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / georgio-2024.247.861-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | georgio-2024.247.861-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 237.2 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
2d974a8a7fa5c988bcaed7a071468d58e824bd966a9267ce543cd5d884c71a36
|
|
BLAKE2b-256 checksum How to use checksums |
a1c8c3ca6dac3f5d0a62b19c52daece9b27cf1e6baa73974caec67db8f7b8590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / georgio-2024.247.861-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | georgio-2024.247.861-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 415.5 kB |
| Tags | CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
94ef4536fad3ee75132cbc17e3ec88db53db948e08650c7ad834ce914581de44
|
|
BLAKE2b-256 checksum How to use checksums |
deb472e99a5c0724c424975ed8c97c775b3aaa3b66cbb868657d22ae06091dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / georgio-2024.247.861-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | georgio-2024.247.861-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 237.2 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
ac00710e605113edc030fec4e6d3b6ad3c3f032a212ef18a639c1cdb67162e29
|
|
BLAKE2b-256 checksum How to use checksums |
fb4612fb6697af3b35e6a8021a95f8fa806cb709419b5cc2a18c8d7fbd4e2f88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for georgio 2024.247.861
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.