Round altitude from GPS result (#17591)

This commit is contained in:
Bram Kragten 2023-08-16 11:49:53 +02:00 committed by GitHub
parent 88ff4c2fa8
commit 9f0b9782a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();