LatLong class
- Inheritance
Constructors
- LatLong(dynamic la, dynamic lo, dynamic h, dynamic d)
- Creates a new lat and long object with a given latitude, longitude and height (datum is optional but by default is WGS84)
- LatLong.fromDms(dynamic latdeg, dynamic latmin, dynamic latsec, dynamic longdeg, dynamic longmin, dynamic longsec, dynamic h, dynamic d)
- Creates a new lat and long object with a given latitude and longitude given in degrees, minutes and seconds, and height (datum is optional but by default is WGS84)
- LatLong.fromJson(dynamic json)
- Creates a new lat and long object from a given JSON object
Properties
-
datum
↔ Map<
String, Object> -
The datum that the latitude and longitude coordinates use
getter/setter pairinherited
-
datums
→ Map<
String, Map< String, Object> > -
The different datums used around the world. These contain the ellipsoid that each datum uses and the transform that is used on each latitude and longitude.
I'm sure that there are datums that aren't listed here, if you would like a datum included that isn't listed please get in touch with the ellipsoid and transform parameters.
finalinherited
-
ellipsoids
→ Map<
String, Map< String, num> > -
The different ellipsoids that are used by each datum. These are used when converting cartesian coordinates between datums.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ dynamic
-
The height (or altitude) of the coordinate
getter/setter pairinherited
- lat ↔ dynamic
-
The latitude value of the coordinate
getter/setter pairinherited
- long ↔ dynamic
-
The longitude value of the coordinate
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convertDatum(
dynamic toDatum) → dynamic -
Converts the lat and long object into a new datum (i.e. from WGS84 into OSGB36 ready to be translated to an OS Grid Reference)
inherited
-
getDatum(
) → dynamic -
inherited
-
getDatums(
) → dynamic -
Returns the list of datums
inherited
-
getDecimalFromDegree(
double deg, double min, double sec) → dynamic -
Returns the decimal value of a lat or long coordinate given its degrees minutes and seconds
inherited
-
getEllipsoids(
) → dynamic -
Returns the list of ellipsoids
inherited
-
getHeight(
) → dynamic -
Returns this object's height value
inherited
-
getLat(
) → dynamic -
Returns this object's latitude value
inherited
-
getLon(
) → dynamic -
Returns this object's longitude value
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCartesian(
) → dynamic -
Converts the lat long values to cartesian coordinates
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the LatLong object into JSON (latitude and longitudes are in decimal)
inherited
-
toOsGrid(
[dynamic toDatum]) → OSRef - This function first converts the lat and long coordinates from the specified datum into the OSGB36 datum It then puts the new lat and long coordinates through a mathematic algorithm that produces the easting and northing references Returns an OSRef object which contains the easting and northing
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited