c

scalation.spatial

LatitudeLongitude

case class LatitudeLongitude(lat: Double, long: Double) extends Product with Serializable

The LatitudeLongitude class stores Latitude-Longitude coordinates.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LatitudeLongitude
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  2. 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

  3. new LatitudeLongitude(lat: Double, long: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. 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)

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def invalid: Boolean

    Determine whether the latitude and longitude are valid.

  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. 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

  12. val lat: Double
  13. val long: Double
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped