From b0ddc2e96d76eee29f1306f82b7caa662d6ae31f Mon Sep 17 00:00:00 2001 From: bashrc Date: Mon, 18 May 2026 18:49:41 +0100 Subject: [PATCH] South is negative --- maps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maps.py b/maps.py index fa19f3438..a39dc6ff7 100644 --- a/maps.py +++ b/maps.py @@ -327,14 +327,18 @@ def get_location_from_post(post_json_object: {}) -> str: longitude = float(longitude) if property_dict['name'] == "GPSLatitude": latitude = property_dict['value'] + is_south = False if isinstance(latitude, str): if 'S' in latitude: latitude = latitude.replace('S', '') + is_south = True elif 'N' in latitude: latitude = latitude.replace('N', '') if not is_float(latitude): if isinstance(latitude, str): latitude = float(latitude) + if is_south and latitude > 0: + latitude = -latitude if latitude is not None and \ longitude is not None: locn2 = {