{"id":15713526,"url":"https://github.com/geocrystal/ring_area","last_synced_at":"2026-01-28T02:52:08.255Z","repository":{"id":232779949,"uuid":"785180629","full_name":"geocrystal/ring_area","owner":"geocrystal","description":"Calculate the approximate area of the polygon were it projected onto the earth.","archived":false,"fork":false,"pushed_at":"2024-12-03T09:00:29.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T18:46:33.136Z","etag":null,"topics":["crystal","geospatial"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geocrystal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-11T11:10:03.000Z","updated_at":"2024-12-03T09:00:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"3271c7c2-4ce8-4470-90cd-af23d2e40a9d","html_url":"https://github.com/geocrystal/ring_area","commit_stats":null,"previous_names":["geocrystal/ring_area"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fring_area","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fring_area/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fring_area/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fring_area/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geocrystal","download_url":"https://codeload.github.com/geocrystal/ring_area/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251759770,"owners_count":21639293,"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":["crystal","geospatial"],"created_at":"2024-10-03T21:31:55.000Z","updated_at":"2026-01-28T02:52:03.234Z","avatar_url":"https://github.com/geocrystal.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ring_area\n\n[![Crystal CI](https://github.com/geocrystal/ring_area/actions/workflows/crystal.yml/badge.svg)](https://github.com/geocrystal/ring_area/actions/workflows/crystal.yml)\n[![GitHub release](https://img.shields.io/github/release/geocrystal/ring_area.svg)](https://github.com/geocrystal/ring_area/releases)\n[![License](https://img.shields.io/github/license/geocrystal/ring_area.svg)](https://github.com/geocrystal/ring_area/blob/main/LICENSE)\n\nCalculate the approximate area of the polygon were it projected onto the earth.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     ring_area:\n       github: geocrystal/ring_area\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"ring_area\"\n\ncoordinates = [\n  [125, -15],\n  [113, -22],\n  [117, -37],\n  [130, -33],\n  [148, -39],\n  [154, -27],\n  [144, -15],\n  [125, -15],\n]\n\nRingArea.ring_area(coordinates).to_meters\n# =\u003e 7748891609977.456\n```\nAccepts an `Array(Array(Number))` of Ring Coordinates as `[[longitude1, latitude1], [longitude2, latitude2], ...]`.\n\nReturns a `RingArea::Area` object which can provide output in kilometers, meters, miles, feet, etc.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/geocrystal/ring_area/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeocrystal%2Fring_area","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeocrystal%2Fring_area","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeocrystal%2Fring_area/lists"}