From d07361112fbd972493323d89ec73bc07e00961ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sat, 11 Nov 2023 12:30:03 +0100 Subject: [PATCH] respect beacon altitude --- src/c3nav/routing/rangelocator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/rangelocator.py b/src/c3nav/routing/rangelocator.py index b6d09e4a..5c05a24d 100644 --- a/src/c3nav/routing/rangelocator.py +++ b/src/c3nav/routing/rangelocator.py @@ -35,7 +35,7 @@ class RangeLocator: bssid=beacon.bssid, x=int(beacon.geometry.x * 100), y=int(beacon.geometry.y * 100), - z=int(router.altitude_for_point(beacon.space_id, beacon.geometry) * 100), + z=int((router.altitude_for_point(beacon.space_id, beacon.geometry)+beacon.altitude) * 100), ) locator = cls(beacons=beacons)