DistanceHaversine class

Shortcut for final Distance distance = const Distance(calculator: const Haversine());

Inheritance

Constructors

DistanceHaversine({bool roundResult = true})
const
DistanceHaversine.withRadius(double radius, {bool roundResult = true})

Properties

calculator DistanceCalculator
Returns either Haversine oder Vincenty calculator
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
radius double
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

as(LengthUnit unit, GeoLatLng p1, GeoLatLng p2) num
Converts the distance to the given LengthUnit
inherited
bearing(GeoLatLng p1, GeoLatLng p2) double
Returns the great circle bearing (direction) in degrees to the next point (p2)
inherited
call(GeoLatLng p1, GeoLatLng p2) num
Shortcut for distance
inherited
distance(GeoLatLng p1, GeoLatLng p2) num
Computes the distance between two points.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset(GeoLatLng from, num distanceInMeter, num bearing) GeoLatLng
Returns a destination point based on the given distance and bearing
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited