boxdist
Cythonized geodetic and planar distance functions for R-Trees. The implementation is adapted from Tile38, which is based on the paper Geodetic Distance Queries on R-Trees for Indexing Geographic Data.
Geodetic
from boxdist import geodetic_box_dist
targetlon = -72.946472
targetlat = 45.154927
minlon = -74.19342
minlat = 45.265222
maxlon = -73.157959
maxlat = 45.704261
meters = geodetic_box_dist(
targetlon,
targetlat,
minlon,
minlat,
maxlon,
maxlat,
)
meters #=> 20612.892322138163
Planar
from boxdist import planar_box_dist
targetx = 0
targety = 0
minx = 1
miny = 1
maxx = 2
maxy = 2
squared_dist = planar_box_dist(
targetx,
targety,
minx,
miny,
maxx,
maxy,
)
squared_dist #=> 2
Metadata
Release files for boxdist 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| boxdist-1.3.1.tar.gz | 54.5 kB | Without provenance | Details for boxdist-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boxdist-1.3.1-cp310-cp310-macosx_12_0_arm64.whl | CPython 3.10 | CPython 3.10 | macOS 12.0+ ARM64 | Details for boxdist-1.3.1-cp310-cp310-macosx_12_0_arm64.whl |
Total release size: 75.6 kB
Release files / boxdist-1.3.1.tar.gz
| Download URL | boxdist-1.3.1.tar.gz |
|---|---|
| Size | 54.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fe69fbb9e1806150905b54e202ccfebf49c8fd9b6ff6c2aa0ff13eec7c3a403
|
|
BLAKE2b-256 checksum How to use checksums |
27641c2a6621af6a357bb65feac88625221ff76adbc6e4db3c7248ee6640f5e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / boxdist-1.3.1-cp310-cp310-macosx_12_0_arm64.whl
| Download URL | boxdist-1.3.1-cp310-cp310-macosx_12_0_arm64.whl |
|---|---|
| Size | 21.1 kB |
| Tags | CPython 3.10 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
562b02e98b2369be38e0359ad9ee1d01a6bb4527102c832179b4d868b43a8866
|
|
BLAKE2b-256 checksum How to use checksums |
d25610e0c7973ccd9362c10f2ba51c2df13aeff30a3bf7383c8f143b5fe47701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for boxdist 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.