setMslAltitudeMeters

open fun setMslAltitudeMeters(@NonNull location: @NonNull Location, mslAltitudeMeters: Double)(source)

Sets the Mean Sea Level altitude of the location in meters.

NOTE: On API levels below 34, the concept of Mean Sea Level altitude does not exist. In order to allow for backwards compatibility and testing however, this method will attempt to set a double extra with the key EXTRA_MSL_ALTITUDE to include Mean Sea Level altitude. Be aware that this will overwrite any prior extra value under the same key.

See also