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, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LatitudeLongitude
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  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. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def invalid: Boolean

    Determine whether the latitude and longitude are valid.

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

  13. val lat: Double
  14. val long: Double
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped