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.225.1340.tar.gz (11.2 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.225.1340-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (988.9 kB view details)

Uploaded PyPymanylinux: glibc 2.5+ x86-64

georgio-2022.225.1340-cp310-none-win_amd64.whl (114.5 kB view details)

Uploaded CPython 3.10Windows x86-64

georgio-2022.225.1340-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (985.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

georgio-2022.225.1340-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (426.1 kB view details)

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

georgio-2022.225.1340-cp39-none-win_amd64.whl (114.6 kB view details)

Uploaded CPython 3.9Windows x86-64

georgio-2022.225.1340-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (985.0 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

georgio-2022.225.1340-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (426.1 kB view details)

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

georgio-2022.225.1340-cp38-none-win_amd64.whl (115.0 kB view details)

Uploaded CPython 3.8Windows x86-64

georgio-2022.225.1340-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (985.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ x86-64

georgio-2022.225.1340-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (426.1 kB view details)

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

georgio-2022.225.1340-cp37-none-win_amd64.whl (114.9 kB view details)

Uploaded CPython 3.7Windows x86-64

georgio-2022.225.1340-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (985.1 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ x86-64

georgio-2022.225.1340-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (426.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.225.1340.tar.gz.

File metadata

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

File hashes

Hashes for georgio-2022.225.1340.tar.gz
Algorithm Hash digest
SHA256 da23a861baa616333d1af2eb3a6abc0208a5a3e221a8390b9c7b77e065327501
MD5 cee42b19d2205e3bbd11388a4853a365
BLAKE2b-256 afc56790704e02e2a358ef6f0a6258abe8a754de9d8d670ccb1d6f989aa8782b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0c6fa40f851a816ef4c414ee24cd9f504a35bce6eec922f519c9a9bb9c0e8a84
MD5 b80c445d7ed68c73069966d82d451113
BLAKE2b-256 60a50b7c96907091490deca2386a3cf67fa2a872a9019a59f28028f3a2889f1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 0b2f20495c078ca833420ff75a25a26c972d21406aa9889b9f23377d3b7f4ff7
MD5 92b28942bc6c953f6bd3c919c3edbfa9
BLAKE2b-256 0f92ab91a1e6abb99a60a55fc7afaf27e17b83d0c895f31e29857d9ef203e1be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2c98fc60a67db648b6c32dfdb7180239b530dc9e0779b0872ea44324b55a273a
MD5 467bccbffe6973da3a05e797b37deb6f
BLAKE2b-256 5c96e960930008cc2665b260e0385c9a0f53aa2c334c846880d22664a8b94693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 30febd4e49b7778d36d4ffae68de46051e7419f63c08fcf81459ae63ba92ecff
MD5 780b62adaafc8056a8e77b75e262a336
BLAKE2b-256 ee4f2fb2eab1acc4a3e22a421ba9d8ff0a73dc8a2b2953bc6bbc7f9333aeb66f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 596fd9ec4accfa76331aace3fd02261f2da507820fe918aeae615378fd825925
MD5 3d9801f0414c0c5d82248bae0ab72490
BLAKE2b-256 3dbd92456de2b8dd79bf24a4f7f477c22039cce77c338f18d842870196e44b69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ac1cec80e0f95d4c77ef47c54a0e5ccd8059b6f58bd39d4b6f741f86500d7f10
MD5 0fbd0b8d12a82f833716f4551aa3de86
BLAKE2b-256 2cba4404c19012a6af83e334c29cedef484db59e6ec179f3a4d33aeb9429acfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7ff004577066a95e0a3e383419779806547e2113adef22513dc0b924341aaf7f
MD5 eed20a7b02f9ee5e664cc3151d8f5dcd
BLAKE2b-256 ab19bd310bb8ed4dcc0212123a51db14a9db995e502a8698e5a77af7fe04f733

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 bf303934cbb52721f802d78de06d28e3b3f82f9a90c4e7145103c07c665bef5b
MD5 f1c67d7dcf0a2e5aa962513f7a40725b
BLAKE2b-256 b9fced5ef2fb0710df9f9877480ba6415ca5a3a031bb10c2c73cb301c3b5b25a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a9b1456a60970a379ae4d31815eccd2a04271ae99c4c949f215a4658faf31cb7
MD5 cbb7530e6194754602b14af82bf9e146
BLAKE2b-256 4183e7cbed4d0d8dd664c41fffaf9c6a4b1426c7eb9340fc67189ab11fd4d83c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6c38777f0dac880558bbda5b73dd6f2b18d2d9d328dc12226d84ff55624f6139
MD5 26b29e2ac2f92bac9ac7495af7137592
BLAKE2b-256 b2947bf3a1586d0e73bc65665d28e7f18ae1639e4d90b35b9cf426687481a606

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 547bbe041306e4220f9798a6d17aa4fd997db95d90bb0f5075c2e31e3d9f168b
MD5 bf293dcc6c3c17d84421ca502601de21
BLAKE2b-256 b24572d82222e4c805acc1dd2114fb2395698d9183f7629afd56a1de84ba99c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f2277e76e6d69efbfb527feb5e24fd24f504fd3250298bcf98715b388b7529b7
MD5 8944c0aa43ede125c1fddbad0b9e67c0
BLAKE2b-256 4d5f5945f4ce81028140f80fb445806be2a9849d0d00bd9489b1cb22c6cc7d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for georgio-2022.225.1340-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 309939c9fe776a89118f1069ad443d3e24004bbf4a6a021f61e3efd62b3f84d9
MD5 dc279b8148b839b1830b1e717a5efd8c
BLAKE2b-256 632300f938403ade8405ab45f0a0ed3b98f89e6ac502b5d54ba89d2855ad4c1d

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