case class LatitudeLongitude(lat: Double, long: Double) extends Product with Serializable
The LatitudeLongitude
class stores Latitude-Longitude coordinates.
- Alphabetic
- By Inheritance
- LatitudeLongitude
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LatitudeLongitude(latDMS: (Int, Int, Int), longDMS: (Int, Int, Int))
Construct a
LatitudeLongitude
object from latitude and longitude as DMS strings.Construct a
LatitudeLongitude
object from latitude and longitude as DMS strings.- latDMS
the latitude in Degrees, Minutes, Seconds
- longDMS
the longitude in Degrees, Minutes, Seconds
- new LatitudeLongitude(latLong: (Double, Double))
Construct a
LatitudeLongitude
object from a pair of doubles.Construct a
LatitudeLongitude
object from a pair of doubles.- latLong
the pair of doubles
- new LatitudeLongitude(lat: Double, long: Double)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def distance(loc2: LatitudeLongitude, elevation: Double = 0.0): 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.
- loc2
the other Latitude-Longitude location
- elevation
the average elevation for two locations (default 0 => sea level)
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def invalid: Boolean
Determine whether the latitude and longitude are valid.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kNearest(locs: Array[LatitudeLongitude], kappa: Int = 3): 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'.
- locs
the other locations to be considered
- kappa
the number of nearest neighbors to collect
- val lat: Double
- val long: Double
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated