Skip to content

Commit

Permalink
Switch lat/lon coordinates in lv95-wgs84 mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Jul 9, 2024
1 parent c79d000 commit 3bc6e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 3bc6e17

Please sign in to comment.