{"id":15887928,"url":"https://github.com/iwpnd/sectr","last_synced_at":"2025-03-20T09:30:25.331Z","repository":{"id":57627314,"uuid":"402669154","full_name":"iwpnd/sectr","owner":"iwpnd","description":"Build a circular sector polygon feature spanning the angle between two given bearings, a center point and a radius. A pizza piece! 🍕","archived":false,"fork":false,"pushed_at":"2022-10-01T13:20:26.000Z","size":1064,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T15:39:41.758Z","etag":null,"topics":["geojson","geometry","geometry-processing","geospatial","geospatial-processing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iwpnd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-03T06:26:09.000Z","updated_at":"2025-03-08T11:57:29.000Z","dependencies_parsed_at":"2022-09-17T10:30:19.742Z","dependency_job_id":null,"html_url":"https://github.com/iwpnd/sectr","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Fsectr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Fsectr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Fsectr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Fsectr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iwpnd","download_url":"https://codeload.github.com/iwpnd/sectr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244585557,"owners_count":20476756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geojson","geometry","geometry-processing","geospatial","geospatial-processing"],"created_at":"2024-10-06T06:05:43.530Z","updated_at":"2025-03-20T09:30:24.857Z","avatar_url":"https://github.com/iwpnd.png","language":"Go","readme":"# sectr 🍕\n\nBuild a circular sector polygon feature (pizza piece 😅 ) spanning the angle between two given bearings, a radius and a center point.\n\n## installation\n\n```\ngo get -u github.com/iwpnd/sectr\n```\n\n## usage\n\n\u003cimg src=\".github/img/sectr_bg.png\"  alt=\"Logo\"  width=\"500\"  height=\"227\"\u003e\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/iwpnd/sectr\"\n  )\n\nfunc main() {\n\tp := sectr.Point{Lat: 52.25, Lng: 13.37}\n\tsector := sectr.NewSector(p, 100, 0, 90)\n\n  fmt.Printf(\"%s\", sector.JSON())\n}\n\n\u003e\u003e {\n  \"type\": \"Polygon\",\n  \"coordinates\": [\n    [\n      [13.37,52.25],\n      [13.37,52.25089932],\n      [13.37012803,52.2508959],\n      [13.3702803,52.2508828],\n      [13.37040491,52.25086448],\n      [13.37055029,52.25083383],\n      [13.37068965,52.25079405],\n      [13.37080006,52.25075423],\n      [13.37092446,52.2506989],\n      [13.37103872,52.25063591],\n      [13.3711253,52.25057807],\n      [13.37121783,52.25050289],\n      [13.37128479,52.25043599],\n      [13.37135219,52.25035138],\n      [13.37140478,52.25026293],\n      [13.37143686,52.25018697],\n      [13.37146091,52.250094],\n      [13.37146896,52.24999999],\n      [13.37,52.25]\n    ]\n  ]\n}\n```\n\n## License\n\nMIT\n\n## Acknowledgement\n\n[Chris Veness](https://github.com/chrisveness) for refreshing my university left-overs with this blog [moveable-type](https://www.movable-type.co.uk/scripts/latlong.html)\n\n## Maintainer\n\nBenjamin Ramser - [@iwpnd](https://github.com/iwpnd)\n\nProject Link: [https://github.com/iwpnd/sectr](https://github.com/iwpnd/sectr)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwpnd%2Fsectr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiwpnd%2Fsectr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwpnd%2Fsectr/lists"}