From cfc34673365c5a1c5376659a9aa711178ed50a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 27 Dec 2024 16:07:15 +0100 Subject: [PATCH] 1.3m above ground is where we assume phones to be --- src/c3nav/routing/locator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index 5612bfc1..bbd4d6af 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -306,7 +306,10 @@ class Locator: result_pos = results.x location = CustomLocation( - level=router.levels[router.level_id_for_xyz(result_pos, restrictions)], + level=router.levels[router.level_id_for_xyz( + (result_pos[0], result_pos[1], result_pos[2]-1.3), # -1.3m cause we assume people to be above ground + restrictions + )], x=result_pos[0]/100, y=result_pos[1]/100, permissions=(),