geopointer library
Classes
- DistanceCalculator
- DistanceHaversine
- Shortcut for final Distance distance = const Distance(calculator: const Haversine());
- DistanceVincenty
- Shortcut for final Distance distance = const Distance(calculator: const Vincenty());
- GCircle
- Circle-base GEO algorithms.
- GDistance
- Calculates the distance between points.
- GeoLatLng
- Coordinates in Degrees
-
GeoPath<
T extends GeoLatLng> - GeoPath of GeoLatLng values
- Geopointer
- Haversine
- LengthUnit
- Vincenty
Constants
- EARTH_RADIUS → const double
- Earth radius in meter
- EQUATOR_RADIUS → const double
- Equator radius in meter (WGS84 ellipsoid)
- FLATTENING → const double
- WGS84
- PI → const double
- The PI constant.
- POLAR_RADIUS → const double
- Polar radius in meter (WGS84 ellipsoid)
Functions
-
decimal2sexagesimal(
double dec) → String - Converts a decimal coordinate value to sexagesimal format
-
degToRadian(
double deg) → double - Converts degree to radian
-
normalizeBearing(
double bearing) → double - Convert a bearing to be within the 0 to +360 degrees range. Compass bearing is in the rangen 0° ... 360°
-
radianToDeg(
double rad) → double - Radian to degree
-
round(
double value, {int decimals = 6}) → double -
Rounds
value
to given number ofdecimals
Typedefs
- LatLngFactory = GeoLatLng Function(double latitude, double longitude)
- Necessary for creating new instances T extends LatLng (Path