ring_area
Version, currently 0.1.25 versions
- 0.2.1latestApr 30, 2024
- 0.2.0not indexedJun 23, 2026
- 0.1.2not indexedJun 23, 2026
- 0.1.1not indexedJun 23, 2026
- 0.1.0not indexedJun 23, 2026
github.com/geocrystal/ring_area
Calculate the approximate area of the polygon were it projected onto the Earth.
2 stars
1 dependent
License: MIT
Nothing has been indexed for 0.1.2 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
ring_area:
github: geocrystal/ring_area
version: ~> 0.1.2Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.2. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# ring_area
[](https://github.com/geocrystal/ring_area/actions/workflows/crystal.yml)
[](https://github.com/geocrystal/ring_area/releases)
[](https://github.com/geocrystal/ring_area/blob/main/LICENSE)
Calculate the approximate area of the polygon were it projected onto the earth.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
ring_area:
github: geocrystal/ring_area
```
2. Run `shards install`
## Usage
```crystal
require "ring_area"
coordinates = [
[125, -15],
[113, -22],
[117, -37],
[130, -33],
[148, -39],
[154, -27],
[144, -15],
[125, -15],
]
RingArea.ring_area(coordinates).to_meters
# => 7748891609977.456
```
Accepts an `Array(Array(Number))` of Ring Coordinates as `[[longitude1, latitude1], [longitude2, latitude2], ...]`.
Returns a `RingArea::Area` object which can provide output in kilometers, meters, miles, feet, etc.
## Contributing
1. Fork it (<https://github.com/geocrystal/ring_area/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.2- Tagged
- Jun 23, 2026
- Commit
08108b0ec1b2- Indexed
- not yet
Dependents
Repository
github.com/geocrystal/ring_area
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 5