geo 0.3.0 copy "geo: ^0.3.0" to clipboard
geo: ^0.3.0 copied to clipboard

A set of functions and types usable in a geographic's context

example/main.dart

import 'package:geo/geo.dart';

void computeDistance() {
  const p1 = LatLng(0, 0);
  const p2 = LatLng(3600, 3600);
  print(computeDistanceBetween(p1, p2));
}

void decodePath() {
  print(const PolylineCodec().decode('_p~iF~ps|U_ulLnnqC_mqNvxq`@'));
  // LatLng(38.5, -120.2),
  // LatLng(40.7, -120.95),
  // LatLng(43.252, -126.453),
}

void encodePath() {
  print(const PolylineCodec().encode(const [
    LatLng(38.5, -120.2),
    LatLng(40.7, -120.95),
    LatLng(43.252, -126.453),
  ]));
  // _p~iF~ps|U_ulLnnqC_mqNvxq`@
}
9
likes
120
pub points
86%
popularity

Publisher

unverified uploader

A set of functions and types usable in a geographic's context

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on geo