diff --git a/backend/tno/views/geo_location.py b/backend/tno/views/geo_location.py index c80855f6..2fcb7b6d 100644 --- a/backend/tno/views/geo_location.py +++ b/backend/tno/views/geo_location.py @@ -44,9 +44,9 @@ def create_async_job(self): self.apply_visibility( queryset, - float(self.params["lat"]), - float(self.params["long"]), - float(self.params["radius"]), + float(self.params["latitude"]), + float(self.params["longitude"]), + float(self.params["location_radius"]), ) def apply_visibility(self, queryset, lat: float, long: float, radius: float): diff --git a/backend/tno/views/occultation.py b/backend/tno/views/occultation.py index 5167d584..3ce820a8 100644 --- a/backend/tno/views/occultation.py +++ b/backend/tno/views/occultation.py @@ -191,9 +191,9 @@ class OccultationViewSet(viewsets.ReadOnlyModelViewSet): ordering = ("date_time",) def check_user_location_params(self, params): - lat = params.get("lat", None) - long = params.get("long", None) - radius = params.get("radius", None) + lat = params.get("latitude", None) + long = params.get("longitude", None) + radius = params.get("location_radius", None) if None in [lat, long, radius]: return lat, long, radius