copy
fun copy(point: Point = this.point, levels: Levels = this.levels, altitude: Double? = this.altitude, bearing: Double? = this.bearing, horizontalAccuracy: Double = this.horizontalAccuracy, timestamp: Long = this.timestamp, heightFromFloor: Double? = this.heightFromFloor, heightFromGround: Double? = this.heightFromGround): Coordinate
Returns a copy of this coordinate with the given fields replaced and every other field preserved.
Each parameter defaults to the current value — so a call only mentions what actually changes. Because the default is "keep the current value", this cannot clear an optional field (e.g. copy(altitude = null) keeps the existing altitude rather than removing it). When you genuinely need to drop a field, build a fresh instance with the constructor and omit it — the constructor defaults are the cleared values (null for the optionals).
Return
A new Coordinate with the specified fields overridden and all others copied from this one.