Last updated:
0 purchases
geos
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'
copied to clipboard
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);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.