Coordinates

marola.model.Coordinates
See theCoordinates companion object
final case class Coordinates(lat: Double, lon: Double)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def distanceKm(other: Coordinates): Double

Straight-line ("as the crow flies") great-circle distance in km, via the haversine formula — cheap, no API call, but it can rank a beach across a bay/headland as "nearby" when it's actually a long drive or not reachable at all without a boat (confirmed on real data: Icaraí/Camboinhas in Niterói show up within 15km of Arpoador, straight across Guanabara Bay).

Straight-line ("as the crow flies") great-circle distance in km, via the haversine formula — cheap, no API call, but it can rank a beach across a bay/headland as "nearby" when it's actually a long drive or not reachable at all without a boat (confirmed on real data: Icaraí/Camboinhas in Niterói show up within 15km of Arpoador, straight across Guanabara Bay).

Attributes

Inherited methods

def productElementNames: Iterator[String]

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
def productIterator: Iterator[Any]

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