West is negative

main
bashrc 2026-05-18 18:53:58 +01:00
parent 0baad8d094
commit ba709c24e8
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ def get_location_from_post(post_json_object: {}) -> str:
if isinstance(longitude, str): if isinstance(longitude, str):
longitude = float(longitude) longitude = float(longitude)
if is_west and longitude > 0: if is_west and longitude > 0:
longitude = - longitude longitude = -longitude
if property_dict['name'] == "GPSLatitude": if property_dict['name'] == "GPSLatitude":
latitude = property_dict['value'] latitude = property_dict['value']
is_south = False is_south = False