Geodesy class
The main geodesy class
This class is an adapted copy of the original https://github.com/wingkwong/geodesy project that is no longer maintained. Changes have been done to work with coordinates instead of latlng.
Constructors
- Geodesy()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
area(
Geometry geometry) → num - Return area (in sqm) of given polygon geometry.
-
bearingBetweenTwoGeoPoints(
Coordinate l1, Coordinate l2) → num - calculate the bearing from point l1 to point l2
-
crossTrackDistanceTo(
Coordinate l1, Coordinate start, Coordinate end, [num? radius]) → num - calculate signed distance from a geo point to greate circle with start and end points
-
degToRadian(
double deg) → double - Converts degree to radian
-
destinationPointByDistanceAndBearing(
Coordinate l, num distance, num bearing, [num? radius]) → Coordinate - calculate a destination point given the distance and bearing
-
distanceBetweenTwoGeoPoints(
Coordinate l1, Coordinate l2, [num? radius]) → num - calculate the distance in meters between two geo points
-
finalBearingBetweenTwoGeoPoints(
Coordinate l1, Coordinate l2) → num - calculate the final bearing from point l1 to point l2
-
intersectionByPaths(
Coordinate l1, Coordinate l2, num b1, num b2) → Coordinate? - calculate the geo point of intersection of two given paths
-
isGeoPointInBoudingBox(
Coordinate l, Coordinate topLeft, Coordinate bottomRight) → bool - check if a given geo point is in the bouding box
-
isGeoPointInPolygon(
Coordinate l, List< Coordinate> polygon) → bool - check if a given geo point is in the a polygon using even-odd rule algorithm
-
length(
Geometry geometry) → num - Return the length of a given geometry in meters.
-
midPointBetweenTwoGeoPoints(
Coordinate l1, Coordinate l2) → Coordinate - calcuate the midpoint bewteen teo geo points
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointsInRange(
Coordinate point, List< Coordinate> pointsToCheck, num distance) → List<Coordinate> -
Get a list of
LatLng
points within a distance from a given point -
radianToDeg(
double rad) → double - Radian to degree
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited