geotypes 0.0.2 copy "geotypes: ^0.0.2" to clipboard
geotypes: ^0.0.2 copied to clipboard

A lightweight library for GeoJSON data types available dart and flutter.

example/geotypes.dart

import 'dart:convert';

import 'package:geotypes/geotypes.dart' as geotypes;

void main(List<String> arguments) {
  final geoJson = '''{
      "type": "GeometryCollection",
      "geometries": [
          {
              "type": "Point",
              "coordinates": [
                  100.0,
                  0.0
              ]
          },
          {
              "type": "LineString",
              "coordinates": [
                  [
                      101.0,
                      0.0
                  ],
                  [
                      102.0,
                      1.0
                  ]
              ]
          }
      ]
  }''';

  final featureCollection =
      geotypes.GeometryCollection.fromJson(jsonDecode(geoJson));
  print(featureCollection);
}
2
likes
160
pub points
70%
popularity

Publisher

verified publishergeometrico.dev

A lightweight library for GeoJSON data types available dart and flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

json_annotation

More

Packages that depend on geotypes