From 9f0b9782a0600de8579023b8b9aafd5ef911d9e1 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 16 Aug 2023 11:49:53 +0200 Subject: [PATCH] Round altitude from GPS result (#17591) --- src/onboarding/onboarding-location.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onboarding/onboarding-location.ts b/src/onboarding/onboarding-location.ts index e75a64b100..b58137d19b 100644 --- a/src/onboarding/onboarding-location.ts +++ b/src/onboarding/onboarding-location.ts @@ -376,7 +376,7 @@ class OnboardingLocation extends LitElement { ); this._location = [result.coords.latitude, result.coords.longitude]; if (result.coords.altitude) { - this._elevation = String(result.coords.altitude); + this._elevation = String(Math.round(result.coords.altitude)); } try { await this._reverseGeocode();