LatLong
The LatLong class stores Latitude-Longitude coordinates. Note: when converting from String to a number use 'mk' not 'to' (e.g., mkInt not toInt).
Value parameters
- lat
-
the latitude in degrees North of the Equator
- long
-
the longitude in degrees East of the Prime Meridian
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
Construct a LatLong object from a pair of doubles.
Construct a LatLong object from a pair of doubles.
Value parameters
- latLong
-
the pair of doubles
Attributes
Construct a LatLong object from latitude and longitude as DMS strings.
Construct a LatLong object from latitude and longitude as DMS strings.
Value parameters
- latDMS
-
the latitude in Degrees, Minutes, Seconds
- longDMS
-
the longitude in Degrees, Minutes, Seconds
Attributes
Concrete methods
Compute the distance between this Latitude-Longitude and location loc2 in meters.
Compute the distance between this Latitude-Longitude and location loc2 in meters.
Value parameters
- elevation
-
the average elevation for two locations (default 0 => sea level)
- loc2
-
the other Latitude-Longitude location
Attributes
Determine whether the latitude and longitude are invalid.
Determine whether the latitude and longitude are invalid.
Attributes
Find the kappa nearest neighbors (top-kappa) to the this location, returning the indices and distances where they are found in locs.
Find the kappa nearest neighbors (top-kappa) to the this location, returning the indices and distances where they are found in locs.
Value parameters
- kappa
-
the number of nearest neighbors to collect
- locs
-
the other locations to be considered
Attributes
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product