Skip to main content

A small example package

Project description

Usage

pip install circle_to_polygon
import circle_to_polygon
import json

center = [173.283966, -41.270634] #[lon, lat]
radius = 200000 #in meters
coordinates = circle_to_polygon.circle_to_polygon(center = center, radius = radius)
json.dumps(coordinates)
"""
{
    "type": "Polygon",
    "coordinates": [[[173.283966, -39.47400343176097], [172.8297426608343, -39.50761945331798], [172.39166717580562, -39.607271255365916], [171.98544458449058, -39.76940340765346], [171.62589074038397, -39.98820144316868], [171.3264802848837, -40.255758887782214], [171.09888995216616, -40.56231121046952], [170.9525431282912, -40.89653624994988], [170.894168491739, -41.24591956982946], [170.92739416288478, -41.597181119390946], [171.0524081585746, -41.9367562214545], [171.26572430426506, -42.251319123422796], [171.56009750883513, -42.528331314494025], [171.9246304894919, -42.75659019219929], [172.3451031959859, -42.92674764018193], [172.80453558092947, -43.03176422124745], [173.283966, -43.06726456823905], [173.76339641907052, -43.03176422124745], [174.22282880401409, -42.92674764018193], [174.64330151050808, -42.75659019219929], [175.00783449116483, -42.528331314494025], [175.3022076957349, -42.251319123422796], [175.51552384142542, -41.9367562214545], [175.6405378371152, -41.597181119390946], [175.673763508261, -41.24591956982946], [175.61538887170875, -40.89653624994988], [175.46904204783382, -40.56231121046952], [175.24145171511628, -40.255758887782214], [174.94204125961602, -39.98820144316868], [174.58248741550943, -39.76940340765346], [174.17626482419436, -39.607271255365916], [173.73818933916564, -39.50761945331798], [173.283966, -39.47400343176097]]]
}
"""

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

circle_to_polygon-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circle_to_polygon-0.1.0-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file circle_to_polygon-0.1.0.tar.gz.

File metadata

  • Download URL: circle_to_polygon-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for circle_to_polygon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f99cd8a6ce1f396eebe087ca36b5a9075e6bab112319192c0c388dcbbfe5592
MD5 3c85f47229686f2b087b987f6c5912f8
BLAKE2b-256 7ad87fd9779dc551983c7b77eefbbdf155d9e872f4a175ab6602debc077ce3b5

See more details on using hashes here.

File details

Details for the file circle_to_polygon-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for circle_to_polygon-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f107e9fbb60dc4c6f212a6618c6c9cfadd8f9d29374394a0636937775f10b08a
MD5 99e4391940b5c0ff131a49397063f8f7
BLAKE2b-256 7fd084e2c33c0b323138f26f78d607a6ba486adbbc0b7e1f5a9633ca06cfa4f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page