object GeoPoint
GeoPoint factories & utilities
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GeoPoint
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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
- def apply(_1: Double, _2: Double, elevation: Option[Double]): GeoPoint
Convenient factory (See GeoPosition; equivalent to
GeoPoint(GeoPosition(_1, _2, elevation))
).Convenient factory (See GeoPosition; equivalent to
GeoPoint(GeoPosition(_1, _2, elevation))
).- Annotations
- @inline()
- def apply(_1: Double, _2: Double): GeoPoint
Convenient factory (See GeoPosition; equivalent to
GeoPoint(GeoPosition(_1, _2))
).Convenient factory (See GeoPosition; equivalent to
GeoPoint(GeoPosition(_1, _2))
).- Annotations
- @inline()
- def apply(coordinates: GeoPosition): GeoPoint
Creates a new point.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit val reader: BSONDocumentReader[GeoPoint]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val type: String
- def unapply(point: GeoPoint): Option[(Double, Double, Option[Double])]
Extracts the point coordinates.
Extracts the point coordinates.
import reactivemongo.api.bson.GeoPoint def elevation(pt: GeoPoint): Option[Double] = pt match { case GeoPoint(a, b, elevation @ Some(_)) => println("_1: " + a + ", _2: " + b) elevation case _ => None }
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- implicit val writer: BSONDocumentWriter[GeoPoint]