toString method

  1. @override
String toString()
override

Calculate the spherical distance from this LatLong to another.

Use vincentyDistance for more accuracy but less performance.

@param other The LatLong to calculate the distance to @return the distance in meters as a double

Implementation

// double sphericalDistance(LatLong other) {
//   return LatLongUtils.sphericalDistance(this, other);
// }

@override
String toString() {
  return 'LatLong{latitude: $latitude, longitude: $longitude}';
}