Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 660 Bytes

utility_documentation.md

File metadata and controls

31 lines (23 loc) · 660 Bytes

Utility

🍭 distanceBetween

Calculate the distance between origin and destination.

double function() {
  final double startLat = 32.0;
  final double startLon = 128.0;
  final double endLat = 33.0;
  final double endLon = 129.0;

  return LocationUtils.distanceBetween(startLat, startLon, endLat, endLon);
}

🍭 bearingBetween

Calculate the bearing between origin and destination.

double function() {
  final double startLat = 32.0;
  final double startLon = 128.0;
  final double endLat = 33.0;
  final double endLon = 129.0;

  return LocationUtils.bearingBetween(startLat, startLon, endLat, endLon);
}