diff --git a/app/coordinates.py b/app/coordinates.py index be972c6e..57832003 100644 --- a/app/coordinates.py +++ b/app/coordinates.py @@ -10,14 +10,18 @@ def __init__(self, latitude, longitude): self.latitude = latitude self.longitude = longitude - def serialize(self): +class Serialize: + def serialize(self,latitude,longitude): """ Serializes the coordinates into a dict. :returns: The serialized coordinates. :rtype: dict """ - return {"latitude": self.latitude, "longitude": self.longitude} + + return {cord} def __str__(self): - return "lat: %s, long: %s" % (self.latitude, self.longitude) + return "lat: %s, long: %s" % (cord) + +cord = Coordinates("latitude","longitude")