datasette-haversine-point-path
Datasette plugin that adds a custom SQL function for shortest haversine distances between a point and a path on a sphere
Install this plugin in the same environment as Datasette to enable the haversine_point_path() SQL function.
datasette install datasette-haversine-point-path
The plugin is built on top of the haversine library.
haversine_point_path() to calculate distances
select haversine_point_path(lat1, lon1, lat2, lon2, lat3, lon3);
This will return the distance in kilometers between the path defined by (lat1, lon1), (lat2, lon2), and the point defined by (lat3, lon3).
Demo
No demo yet
Custom units
By default haversine_point_path() returns results in km. You can pass an optional third argument to get results in a different unit:
ftfor feetmfor metersinfor inchesmifor milesnmifor nautical mileskmfor kilometers (the default)
select haversine_point_path(lat1, lon1, lat2, lon2, 'mi');
Metadata
Release files for datasette-haversine-point-path 0.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 |
|---|---|---|---|---|
| datasette-haversine-point-path-0.1.tar.gz | 7.6 kB | Without provenance | Details for datasette-haversine-point-path-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_haversine_point_path-0.1-py3-none-any.whl | Python 3 | none | any | Details for datasette_haversine_point_path-0.1-py3-none-any.whl |
Total release size: 15.2 kB
Release files / datasette-haversine-point-path-0.1.tar.gz
| Download URL | datasette-haversine-point-path-0.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ca3cbeebfa9d3284e977753986ac3419ed0c69101a3baf0a2dbf66b196441d9
|
|
BLAKE2b-256 checksum How to use checksums |
68b8afd612ec7cd0bc01534efb30c373fb07d005b1787fc5b95e64a2e11a52a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / datasette_haversine_point_path-0.1-py3-none-any.whl
| Download URL | datasette_haversine_point_path-0.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05fc3445876afdbb45dd29595e4ac0fc9dfe3251c4e0f6a4bc549edd63626d1e
|
|
BLAKE2b-256 checksum How to use checksums |
8d2b72886a26ffd4538f3ae2fac781212e82ac7eecf0c546941ecdecb836cbc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for datasette-haversine-point-path 0.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.