Build cluster from multiple identical longitude and latitude coordinates
Project description
Cluster Coordinates
Given ia longitude, and latitude, cluster_coords will create a new latitude and longitude randomly placing it anywhere between 5 and 25 meters from the original longitude and latitude.
from cluster_coords import RandomCoord
coords = RandomCoord(<lomgitude>,<latitude>).randomize_coords()
new_lat = coords.lat
new_lng = coords.lng
Installation
pip install cluster_coords
[sonnyparlin@localhost cluster_coords]$ python
Python 3.9.1 (default, Jan 20 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cluster_coords import RandomCoord
>>> coords = RandomCoord(-87,40).randomize_coords()
>>> coords.lng
-86.9997771932092
>>> coords.lat
40.00013474729262
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
cluster_coords-0.0.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for cluster_coords-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6608227d38899fa469135b5b40673e8e218e92a7a4056a87c5a3b1f395261e4b |
|
MD5 | e2cff45dc82e5f3f4e14161b27ae7aa6 |
|
BLAKE2b-256 | 7bb3c86987e4a3b5d3af89ced7ac26b9d9cab26054f2f694245e37433b765ae7 |