-from math import sqrt
-
-
class Coordinates:
- """Represents a set of GPS coordinates (latitude/longitude)."""
+ """Represents a set of GPS coordinates (longitude/latitude)."""
- def __init__(self):
- self.latitude = 0
- self.longitude = 0
+ def __init__(self, x=0, y=0):
+ self.longitude = x
+ self.latitude = y