Convenient factory (equivalent to GeoPosition(_1, _2, None)
).
Creates a full-qualified position.
Creates a full-qualified position.
reactivemongo.api.bson.GeoPosition(12.3D, 4.56D, None)
Extracts the position properties.
Extracts the position properties.
import reactivemongo.api.bson.GeoPosition def pos_1(pos: GeoPosition): Option[Double] = pos match { case GeoPosition(a, b, elevation) => { println("_1 = " + a + ", _2 = " + b + " / " + elevation) Some(a) } case _ => None }
GeoPosition factories and utilities