LatLong

scalation.LatLong
case class LatLong(lat: Double, long: Double)

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(latLong: (Double, Double))

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

def this(latDMS: (Int, Int, Int), longDMS: (Int, Int, Int))

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

def distance(loc2: LatLong, elevation: Double): Double

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

def invalid: Boolean

Determine whether the latitude and longitude are invalid.

Determine whether the latitude and longitude are invalid.

Attributes

def kNearest(locs: Array[LatLong], kappa: Int): Array[(Int, Double)]

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

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product