area 1.0.0

Dart native js
Flutter Android iOS web

Compute an area (in square meters) of a GeoJSON polygon or multipolygon

Area #

Calculate the area (in square meters) of a GeoJSON polygon or multipolygon.

Usage #

import 'package:area/area.dart';

const world = {
  'type': 'Polygon',
  'coordinates': [
    [
      [-180, -90],
      [-180, 90],
      [180, 90],
      [180, -90],
      [-180, -90]
    ]
  ]
};

print(area(world));

Tests #

Just run:

$ pub run test/area_test.dart

Credit #

3
likes
110
pub points
73%
popularity

Compute an area (in square meters) of a GeoJSON polygon or multipolygon

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ikarus.cz@gmail.com

License

unknown (LICENSE)

More

Packages that depend on area