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.102.1345.tar.gz (11.1 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.102.1345-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (959.6 kB view details)

Uploaded PyPymanylinux: glibc 2.5+ x86-64

georgio-2022.102.1345-cp310-none-win_amd64.whl (114.3 kB view details)

Uploaded CPython 3.10Windows x86-64

georgio-2022.102.1345-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (954.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

georgio-2022.102.1345-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (410.6 kB view details)

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

georgio-2022.102.1345-cp39-none-win_amd64.whl (114.2 kB view details)

Uploaded CPython 3.9Windows x86-64

georgio-2022.102.1345-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (954.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

georgio-2022.102.1345-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (410.8 kB view details)

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

georgio-2022.102.1345-cp38-none-win_amd64.whl (114.1 kB view details)

Uploaded CPython 3.8Windows x86-64

georgio-2022.102.1345-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (954.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ x86-64

georgio-2022.102.1345-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (411.1 kB view details)

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

georgio-2022.102.1345-cp37-none-win_amd64.whl (114.0 kB view details)

Uploaded CPython 3.7Windows x86-64

georgio-2022.102.1345-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (954.3 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ x86-64

georgio-2022.102.1345-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (411.1 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.102.1345.tar.gz.

File metadata

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

File hashes

Hashes for georgio-2022.102.1345.tar.gz
Algorithm Hash digest
SHA256 be3b7ab3fdedd8571d227a75d9e14215f3e56899800c97b56dd4e3d0aef82488
MD5 b2fbf05fecdea771bc14bc7ca27fd001
BLAKE2b-256 377c482688c77c95f982682375586a9b259055d776613c0bcaa4a3fdee785cc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5f6da31c54d2de53d67be7949f3a2b62220e25a1db539c2ae090e523531ceae6
MD5 b870ffb497f9a12e50157b557e830648
BLAKE2b-256 56fa2f78d3036b49f595bef33b6857458605e7eb2c1a4613401728b479bf06ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 17b0c5adcff9981fe479314a393bbed14b60e1b57c4cce10a357747a3889374d
MD5 86e4683e2f195d5842dc5deb56ab566c
BLAKE2b-256 394de656376e6348b8221128676cd9c88e1b93cb0931e88141b25e08979c112e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1622fa5e671f0b6f74900e2f24f3afe822c0de776cbd7d90b01a76d1511e4a30
MD5 1c94b745eabaaef106cca70e3d735cd7
BLAKE2b-256 7fc7a32f66f868cb2a38a45ef8dccf2a7188a7140a7271f24a6bb137234ed636

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fe46914583e42ef8fc15bc43de4695b4185ff56535c7a0a5e8f31b10cf718c01
MD5 f51e42baf3c27b624501e3fbc4693920
BLAKE2b-256 810438538cfd58b2d5f7d76e4d9cab0800cfed56ded9ba8854160908c45305bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 6f57f4633758b0842fdd886ad3caf0566782fb9312f9f820999f64b0c7af47ef
MD5 edba318012785215f1b93a75b0f70a17
BLAKE2b-256 86f250c15331bc48ad1b2ad76422e1994dc364e481ff387e693960f0696c8c22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5b079a3c586aa0405cdeee66c8161b12d9922c46fc0eeef021440869667f1307
MD5 dfefb019eb7becde7dd50b8ce920add7
BLAKE2b-256 69f05280eae54c87fd86d3bf524f10630aa615e920a687ee7dbf418742dc389d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7c8d3f815f4f7fc8d6c2e682b2d14d74a1ef4fd6f6b22ac7d1809fe598ec9c95
MD5 43343571f72c823c1431a232fdf9b6b0
BLAKE2b-256 852b2c19c91ec19c3ec24cb9b2e4a719749fa435baeec9a2894f13fbe7fe9cd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 422777e5c57421bd18b6023b91d0724403557c97c40f01abb1c7d861d9c54cae
MD5 6963ff81a591d41dad42532d94970fec
BLAKE2b-256 ae52436855d01fffe81e0d26a5d50d24fdd66dc00148b53d81f20e036d63b052

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d29a147099e143dee417e5dbd54a6d7a0dbe6fb0c7c19a142e55976dcc6e5c80
MD5 fc030e7956ca3cdea0da6b71134b6994
BLAKE2b-256 29cfbcabe5f99ea78b3e379fec61d38c565ccc456d65ea542e089862f6c046c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ea41cbd1f88c03fdb31f2a4560a1b2bd9744813dcceedc9362b6b9d3b0ea365b
MD5 e6c8d5ba40ff1219419c1976f434db5c
BLAKE2b-256 ae1eb72751fef890bb6f1433cf8c773b3b490fb9b3b25ec54edce3f7ee66d5a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 39568067e26d57e099097d7a7a08620828d1cab933c06f45e760d4bed5f52689
MD5 c9fccbc0540f2805d6c237f2410bf0c3
BLAKE2b-256 61891271120f6d126842cb0220d44e0429a2df04a8f8de8e7e34c7be23fca99c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f0f04b005d361591b952c49da6084b37706ff5a40d063ba0c1a7756438294850
MD5 0b126c69a2867a0ffcef0ea86606e34d
BLAKE2b-256 fdc96ada28b66c6767388d9a6a535229f3bf00a9e718f5980aa16f47054d8464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.102.1345-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2d23739ebd386fb43a38cfd75670b44e4fc9792b73374a2399be296925c645e6
MD5 6b9ac5a867f92b8e83825a81443d3e2f
BLAKE2b-256 664b386bb0fd238d86f84dddabc32ee69076349ccb20eb60053d7d71cb1f887c

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