]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - src/GPS.py
Added default values for the GPS.Coordinates constructor.
[dead/census-tools.git] / src / GPS.py
index 477dc9b93bb5e219cd01a30db73d0004eccf08fd..7939d343f50f75f2e822e9bef6888d6816f27f78 100644 (file)
@@ -1,6 +1,6 @@
 class Coordinates:
     """Represents a set of GPS coordinates (latitude/longitude)."""
     
-    def __init__(self):
-        self.latitude = 0
-        self.longitude = 0
+    def __init__(self, x=0, y=0):
+        self.longitude = x
+        self.latitude = y