geos 2.1.2 copy "geos: ^2.1.2" to clipboard
geos: ^2.1.2 copied to clipboard

A set of classes useful in geographical context.

example/geos_example.dart

import 'dart:collection';

import 'package:geos/geos.dart';

void main() {
  const Country italy = Country.italy;
  print(italy.alpha2Code); // 'IT'
  print(italy.alpha3Code); // 'ITA'
  print(italy.englishName); // 'Italy'
  print(italy.flagEmoji); // '🇮🇹'
  print(italy.numericCode); // '380'

  final Place myPlace = Place(
    address: 'This is the address 1',
    latitude: 10.1234567,
    longitude: 15.1234567,
    name: 'The name of this place 1',
    tags: SplayTreeSet.from([
      'tag1',
      'tag2',
      'tag3',
    ]),
  );
  final Place myFavoritePlace = Place(
    address: 'This is the address 2',
    isFavorite: true,
    latitude: 0.1,
    longitude: 0.5,
    name: 'The name of this place 2',
    tags: SplayTreeSet.from([
      'tag1',
      'tag2',
      'tag3',
    ]),
  );
  final double distance = myPlace.distanceWGS84(myFavoritePlace);
}
5
likes
130
pub points
5%
popularity

Publisher

unverified uploader

A set of classes useful in geographical context.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

meta

More

Packages that depend on geos