Skip to content
/ area Public

Calculate the area inside of any GeoJSON geometry. This is a Dart port of Mapbox's geojson-area.

License

Notifications You must be signed in to change notification settings

porn/area

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Calculate the area inside of any GeoJSON geometry. This is a Dart port of Mapbox's geojson-area.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages