GeoProximity Package Usage Guide
Introduction
GeoProximity is a Python package designed to facilitate geospatial distance calculations, point projections, and related operations. It includes functions for both Haversine distance (great-circle distance) and Euclidean distance calculations. GeoProximity is suitable for applications that require proximity analysis, spatial operations, and basic geospatial functionality.
Installation
Ensure Python is installed on your system, then install the geoproximity package using pip:
pip install geoproximity
Calculate harversine distance
import geoproximity
geoproximity.haversine_distance(coord1, coord2)
It returns the haversine distance between two points in km.
Find the nearest neighbor from the list of coordinates to the referece point
geoproximity.nearest_neighbor(reference_point, coordinates_list)
It returns a tuple containing the nearest point and distance of the nearest point from the reference point in km.
Example:
reference_point = (37.7749, -122.4194)
other_points = [(34.0522, -118.2437), (40.7128, -74.0060), (41.8781, -87.6298)]
nearest_point, min_distance = geoproximity.nearest_neighbor(reference_point, other_points)
Calculate the area of a polygon
geoproximity.calculate_polygon_area(polygon_geojson)
We need to pass the polygon geojson as a parameter to the calculate_polygon_area function. It returns the area of the polygon in square km.
Metadata
Release files for geoproximity 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 |
|---|---|---|---|---|
| geoproximity-0.1.tar.gz | 3.7 kB | Without provenance | Details for geoproximity-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geoproximity-0.1-py3-none-any.whl | Python 3 | none | any | Details for geoproximity-0.1-py3-none-any.whl |
Total release size: 8.3 kB
Release files / geoproximity-0.1.tar.gz
| Download URL | geoproximity-0.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccb57663c5ee7243d48f14f836884affcecd27bddaecc4af3854b4a8be4e7f35
|
|
BLAKE2b-256 checksum How to use checksums |
688aa5a3f00604135d82dd5a8504eb84abe52649d8776c74b70f317837573ce7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / geoproximity-0.1-py3-none-any.whl
| Download URL | geoproximity-0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d31e5793b0f1fa4b23cdc2d82a3739ca9750166a11ee1d4b44090f86e1db513d
|
|
BLAKE2b-256 checksum How to use checksums |
55f5ebd70492eb22484b0cc0107645364f29c020f388ef7f2634b87e00e9d403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for geoproximity 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.