Skip to main content

Fast Geo Rust functions for Python

Project description

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 (same as geopy).

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)

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)

Project details


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.

georgio-2022.313.1239-cp310-none-win_amd64.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86-64

georgio-2022.313.1239-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

georgio-2022.313.1239-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (428.9 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

georgio-2022.313.1239-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file georgio-2022.313.1239-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for georgio-2022.313.1239-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 92a55a7baf61915bad6d22c0b67b71f59882ca641e4f06c3e1fe3ad836f6433f
MD5 f45adae790c0e52a31dfdc0f74951c64
BLAKE2b-256 78357d829324bc2d3a878d8dbe3de56efe35679cd95dfd13cdea7483eb8eb76a

See more details on using hashes here.

File details

Details for the file georgio-2022.313.1239-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.313.1239-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7921a5453ab73782f3c92045cc06e59bfa334ab3df24897be2cf55cc59f65d5e
MD5 bd131a08aa0fc79a4c77f1cccae82911
BLAKE2b-256 faaf00ed6d3dd96545cb33c2d72f57baa064dc71e469d075072f9beb4758f8ca

See more details on using hashes here.

File details

Details for the file georgio-2022.313.1239-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for georgio-2022.313.1239-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5318f5cf5c356b58509f75c0e2f97c68c4cce61c3793a484107f3d5e6d7e4e06
MD5 a62b23060e4e4b09d9b30d7411b4ac4d
BLAKE2b-256 b574ba75152b108fe015768c6d039bb5d3e1ea388aa3d1328c360e8bc831b3b6

See more details on using hashes here.

File details

Details for the file georgio-2022.313.1239-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.313.1239-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fd40b891323d83d4c282341b47e59e1a007a43698376d00d05e27c9ddc13519
MD5 b8e3f6858513b1d7ef4e42b8df7e0cd2
BLAKE2b-256 b4117e4d1849d8a2a88ef6d8d4aa28ed9728306856548fc20358eec759b0484e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page