cluster-coords-0.0.7
توضیحات
Build cluster from multiple identical longitude and latitude coordinates
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cluster-coords-0.0.7 |
| نام | cluster-coords |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sonny Parlin |
| ایمیل نویسنده | ask@sparl.in |
| آدرس صفحه اصلی | https://github.com/sonnyparlin/cluster_coords/ |
| آدرس اینترنتی | https://pypi.org/project/cluster-coords/ |
| مجوز | MIT |
# Cluster Coordinates
Given a 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. This is helpful when adding points to a map, you don't want to add a point directly on top of another point, so this module helps you create a cluster.
```python
from cluster_coords import RandomCoord
longitude=-82.562800
latitude=27.488960
coords = RandomCoord(longitude,latitude).randomize_coords()
new_lat = coords.lat
new_lng = coords.lng
```
# Installation
```pip install cluster_coords```
```python
[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(-82.562800,27.488960).randomize_coords()
>>> coords.lng
-82.56268860928326
>>> coords.lat
27.489076780986935
```
Code borrowed from Stack Exchange answer: [here](https://gis.stackexchange.com/questions/2951/algorithm-for-offsetting-a-latitude-longitude-by-some-amount-of-meters), answer by [haakon-d](https://gis.stackexchange.com/users/260/haakon-d).
This project is open source and is located [here](https://github.com/sonnyparlin/cluster_coords).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cluster-coords-0.0.7:
pip install cluster-coords-0.0.7.whl
نصب پکیج tar.gz cluster-coords-0.0.7:
pip install cluster-coords-0.0.7.tar.gz