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.

Pub Version (including pre-releases) Dart GitHub Actions GitHub Top Language

A set of classes useful in geographical context.

Features #

Easily create a country of the world and easily access information about it with the Country enum.

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

Easily create a place, give it a name, indicate the address and location, if it is a favorite place or not, and associate tags with it, with the Place class.

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