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 Distribution

georgio-2022.84.1090.tar.gz (10.4 kB view details)

Uploaded Source

Built Distributions

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

georgio-2022.84.1090-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (934.0 kB view details)

Uploaded PyPymanylinux: glibc 2.5+ x86-64

georgio-2022.84.1090-cp310-none-win_amd64.whl (107.0 kB view details)

Uploaded CPython 3.10Windows x86-64

georgio-2022.84.1090-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

georgio-2022.84.1090-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (397.9 kB view details)

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

georgio-2022.84.1090-cp39-none-win_amd64.whl (107.0 kB view details)

Uploaded CPython 3.9Windows x86-64

georgio-2022.84.1090-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

georgio-2022.84.1090-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (397.9 kB view details)

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

georgio-2022.84.1090-cp38-none-win_amd64.whl (107.0 kB view details)

Uploaded CPython 3.8Windows x86-64

georgio-2022.84.1090-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.2 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ x86-64

georgio-2022.84.1090-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (397.4 kB view details)

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

georgio-2022.84.1090-cp37-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.7Windows x86-64

georgio-2022.84.1090-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.2 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ x86-64

georgio-2022.84.1090-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (397.4 kB view details)

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

File details

Details for the file georgio-2022.84.1090.tar.gz.

File metadata

  • Download URL: georgio-2022.84.1090.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.11

File hashes

Hashes for georgio-2022.84.1090.tar.gz
Algorithm Hash digest
SHA256 3ea35afa4a86c7f5f8eaea6a84b08dbaa0da3ce9e63e9f7fedeefd1b8ee645fc
MD5 5afe2f72a663039da37a2eaa2f5f4a55
BLAKE2b-256 b1e4cb291f8f2d8bcba7dc93c849141a86064040c8073ec05f020febe4070871

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a9b600f9dfb9171325e8df55b70b9866fec84f9eaafd0652950374387e410ebb
MD5 b3c2eb9cdf65e9039ab43fc86a5b21b0
BLAKE2b-256 4ec26e39217111c5186006bedaa6884648fb657df95daa2ac79eefcce31ea68f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 961b453e5f630b3f293147e460d42aae776043e130c38b65e076d2a8c0116586
MD5 a74811177624625e7d68c219067f62ff
BLAKE2b-256 3584e12a0ffd42d90a6ca406207ba82ea2a9fbb3a7047a5d453c31fab19452ae

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ec1f213c03ddaa2016b9c6aad384787a6fab7e0100a1096e548a16e291090f04
MD5 729d8c88b7be1d4ed03de6afbfbb384c
BLAKE2b-256 6443519b70d41afbb8a5b189acd3bc87670265123f660d0e428c9e628510846d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3e10effca6f2cd16ef05bdff387a76a0ad989bd816d195d6debc063147a31b94
MD5 d40fc309bc077eadfa1c03fe791ab4c5
BLAKE2b-256 b97cb0f390687bb5e5db13524b2f78bb20d2aeabd40d1727038ed4b649c101c6

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 3716566df2d8dbe0746c964db7cf939fa90f622dad6ae3426b32b42b0720afcd
MD5 1ea13ad2950d6780cdc0062f37c56fd1
BLAKE2b-256 513e37584ea711a0d00471f19b0c65e9962bb3b3365390d6b0c32fae66635f4b

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 41248ab3b8bfd324b950f450744b70943492b2515890c135624355d32947fe7b
MD5 d88bd64dc1a562da40b29d2bcfe70114
BLAKE2b-256 9212a431fab4f8cad03abd10f5cff20cb2db5c0c891fcea5b571ca4556c05d87

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 973dcf87d31a54953d4f1a8c7516cb50b0aba9cef822e14807a6ec336498f8aa
MD5 840c7eaa8e9ad54fcbbed18ad5779de6
BLAKE2b-256 c847f18a13e31079d2ed5a203eed546dbf26d8f2e5b4967b212590719523ce89

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 eddacda9861aea580dcde528497efb0a1bb15b9d39043c6d62fd9a1c6d24af2f
MD5 84002973ee947fb81fd6edf33f835fd9
BLAKE2b-256 a564da9b8f8ac805217c1fb31482d39673c188ccd23365f7d44b60d0b5866272

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ee4605a68ec8da891823d7bdd361a5bc268add51563ab40a38202f6a6c7b0168
MD5 48ee59d6d5b1c8ec8be720d7d8fdd93a
BLAKE2b-256 11e20982b9278f088a2d1fedc4483e8e783d2acdbe2c27485673bd4e338b6e24

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 430134cda3adab3c31d96f4c608019a6512e18ac8c1e90b504c5a64e0f7a0fa1
MD5 6b9e3caecdae5d64d3ef78068f092aef
BLAKE2b-256 6d1eba9d15868d3548463befc9a16feb4c4daedc188874873436a151d3d47225

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 c9ada9d699ff582d872770f3a710cd8c3e793e0f82d834a3a7da90ff9fd751ac
MD5 287946d961d526fb85ec9cc0e6341ba2
BLAKE2b-256 d354f21d78426a7ec81432c71ebc24941c1fcfbf6ecd23ba76c2c3c9507dbd59

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e7b7d13240fc576f852abcefd75e03d85c9cbee9c81be3c418b584036d2d222d
MD5 6ec6162dbf876fa5a1303d734504c340
BLAKE2b-256 6930ce8722525a1b1fdc2a941f103da10fcc50d86dcd7a96a326800354891fdb

See more details on using hashes here.

File details

Details for the file georgio-2022.84.1090-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for georgio-2022.84.1090-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 70d5a13466f9afe32639136dccb53bdea57898b605c3297dbd564a719e78ad3c
MD5 bab7ea56293f6137c0e5a4b6e6e5781f
BLAKE2b-256 10240d9519afc5d17fc202b8d37953cc4f6fb985efa919930b0101f461ff8e0e

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