geography 2.0.1
geography: ^2.0.1 copied to clipboard
A library of geographical entities, their metadata, and relationships. Provides a basic, and an earth, library with methods for finding the nearest entity and measuring distances.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add geography
With Flutter:
$ flutter pub add geography
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
geography: ^2.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:geography/basic.dart';
import 'package:geography/earth.dart';