area 0.0.3 copy "area: ^0.0.3" to clipboard
area: ^0.0.3 copied to clipboard

outdated

Compute an area 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 #

6
likes
0
pub points
67%
popularity

Publisher

unverified uploader

Compute an area of a GeoJSON polygon or multipolygon

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on area