From: Michael Orlitzky Date: Thu, 1 Oct 2009 13:44:54 +0000 (-0400) Subject: Added default values for the GPS.Coordinates constructor. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=805302004cf79d262e5d4c54fb920b2549053257;p=dead%2Fcensus-tools.git Added default values for the GPS.Coordinates constructor. --- diff --git a/src/GPS.py b/src/GPS.py index 477dc9b..7939d34 100644 --- a/src/GPS.py +++ b/src/GPS.py @@ -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