Skip to content

Commit

Permalink
DBC22-1884: corrected the issue that coordinates lat and lon incorrec…
Browse files Browse the repository at this point in the history
…tly parsed

DBC22-1884: corrected the issue that coordinates lat and lon incorrectly parsed
  • Loading branch information
bcgov-brwang authored and minORC committed Mar 28, 2024
1 parent b808a56 commit 02299b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/apps/rest/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def __str__(self):
return f"Rest Stop for {self.pk}"

def save(self, *args, **kwargs):
latitude, longitude = self.geometry.get("coordinates")[0], self.geometry.get("coordinates")[1]
latitude, longitude = self.geometry.get("coordinates")[1], self.geometry.get("coordinates")[0]
self.location = Point(longitude, latitude)
super().save(*args, **kwargs)

0 comments on commit 02299b1

Please sign in to comment.