From 3bc6e177a41831f7aed466ddcf17ab778a3ba9a6 Mon Sep 17 00:00:00 2001 From: Daniel von Atzigen Date: Tue, 9 Jul 2024 15:21:03 +0200 Subject: [PATCH] Switch lat/lon coordinates in lv95-wgs84 mapping --- .../src/features/assets/search/asset-search.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server-asset-sg/src/features/assets/search/asset-search.service.ts b/apps/server-asset-sg/src/features/assets/search/asset-search.service.ts index 35fc35b8..ed77f301 100644 --- a/apps/server-asset-sg/src/features/assets/search/asset-search.service.ts +++ b/apps/server-asset-sg/src/features/assets/search/asset-search.service.ts @@ -652,7 +652,7 @@ const wgs84Projection = proj4.WGS84; const mapLv95ToElastic = (lv95: LV95): ElasticPoint => { const wgs = proj4(lv95Projection, wgs84Projection, [lv95.x as number, lv95.y as number]); - return { lat: wgs[0], lon: wgs[1] }; + return { lat: wgs[1], lon: wgs[0] }; }; const mapQueryToElasticDsl = (query: AssetSearchQuery): QueryDslQueryContainer => {