DistanceVincenty class Null safety

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

Inheritance

Constructors

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

Properties

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

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 non-existent 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