Skip to main content

No project description provided

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.833.tar.gz (10.3 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.833-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (933.8 kB view details)

Uploaded PyPymanylinux: glibc 2.5+ x86-64

georgio-2022.84.833-cp310-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.10Windows x86-64

georgio-2022.84.833-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

georgio-2022.84.833-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.833-cp39-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.9Windows x86-64

georgio-2022.84.833-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

georgio-2022.84.833-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.833-cp38-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.8Windows x86-64

georgio-2022.84.833-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ x86-64

georgio-2022.84.833-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.833-cp37-none-win_amd64.whl (106.8 kB view details)

Uploaded CPython 3.7Windows x86-64

georgio-2022.84.833-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (930.1 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ x86-64

georgio-2022.84.833-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.833.tar.gz.

File metadata

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

File hashes

Hashes for georgio-2022.84.833.tar.gz
Algorithm Hash digest
SHA256 f2fcb63ca2e13aa6442385041287389b04b578f4f352da9c9b1810a9edc1e02d
MD5 3d16cd0d16a7d77288a9bbde1f8d8390
BLAKE2b-256 0b6d3f0a2690ee5523368cb57a5ead98650121290d7cc83fbe8fc53441088812

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0a8266ef7e715dbef31c229936f68ceba0c772535c41d9c5ccd0fbde455f477d
MD5 d61849125818d44a6ba8d6550b8015b5
BLAKE2b-256 dce706442df692b0f10229100782f728a88a2b698de8b58bad8c10f1a6c4e309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 e1defd6a1ae5f1bf762909f980a05e38304c3cc11e186e35926658068b85d077
MD5 acd3556061a8d8d10263ad65302be55c
BLAKE2b-256 8b31688f777744f4306b49dc395a35691aa1869799b56c97e73954cd31138702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f108516f55003421ba4e2d5537f1628eff7ee43c42105a9174c49670273cb219
MD5 bb099380d03dfbce38fd8884fcfdfd6c
BLAKE2b-256 1129c51a94c9cfee1e85027e15d5afe873e0fdaf98f0b5f9e9b7167080d3ca62

See more details on using hashes here.

File details

Details for the file georgio-2022.84.833-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.833-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 286a0741360367cdb849438f0949386cdd0538b3082f811df6d92024dd2ea002
MD5 3da844f81f1d7ee476b5f473c61b012f
BLAKE2b-256 2c6ff3d376a509896f2b8aa7f4bf9f6c354a772064f9386fa55324f7e3bab192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 df6b623699ca894ab481372efc4e0be615d54316c460cf81316351c8cb5f33fa
MD5 22af4f42bcf635b58f0d4ea1cb79b9d3
BLAKE2b-256 0a5c59cb9cc7c63d87643b9f5ed8fd6726186bf89a03b46667f6981e2deb76a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f22a3368e437acff125d24b11698236951f8bd5dd0ada9da487fbbbf18debb1b
MD5 fb3b1c46b2550ec696416490854062c5
BLAKE2b-256 0d87419c96b23291015b967e590b3a33eb1a93b225b8f39cee57cc7f8c4e560c

See more details on using hashes here.

File details

Details for the file georgio-2022.84.833-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.833-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 145707ab42fd40731f827a0c170ea81389aba5566a40f477a4c5975eb3d799b6
MD5 aeea671cf4485ca381119bbb31adc3e6
BLAKE2b-256 597e11f28a763a4ce2fed037d93be9d7c1fd8f21ff6812a5ccff2a848aeae456

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 1412a53e2c564536ddd10f4be1d4e0a61749b3c2a8e52e932ecafef7eb546377
MD5 b88e8eb859156b3f2282dae8046c2000
BLAKE2b-256 e53ed617a884d4408874e4b29557f652fca8f4ab1f8e87c5375e1480e6056f79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d8c65d55a4705717cfb7dc4f7818a53a84668471299780f8f5cc09ba673efa04
MD5 89c0ef7dd37d9890e8e3433aac0ac14e
BLAKE2b-256 9fec09f40f4df31edccea8a69efd066f3258048facf030f921e98ef59aa269f3

See more details on using hashes here.

File details

Details for the file georgio-2022.84.833-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.833-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 aab36be91f947e6850293b95c40d0017ac17dd10bb72954b66c2ed419d7a0136
MD5 8fc80751e82e4cf09c767e26179bc04e
BLAKE2b-256 660dd8de4ed4d7ddde823f20876e18f0f9820b640d03add234940af1f3c0db09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 b55802006b81b88c4761357334cd46749a7727a8c2da742b19ffcad83db829b3
MD5 244b989586ffdd570546f086b9e320a1
BLAKE2b-256 c3c1b6e82e28965cd29a3fcd60eb4b8690ab98b40ed802a41e5d4a80a3ab32ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.84.833-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 99796ddcdab97829181887f9c3d4058dc42b07f4d291aaa80fe49857f294393b
MD5 bbe71e8964db81ccece96b9808024baa
BLAKE2b-256 e1b6d16046a038d7d59a5716e2d6e398c6bc719b7f483b0d24e3633c706e5632

See more details on using hashes here.

File details

Details for the file georgio-2022.84.833-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.833-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8068b5ff4e88406cd549280211c1017ec18271fec2aa3970c378b4b505045e8d
MD5 fd66156d96963ae1ca06ccff9869f0f2
BLAKE2b-256 b1de863acbf872b93588218629203f1573f4fe72e28738d82a6519ceac30a693

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