This commit is contained in:
Jakob Ketterl
2019-08-15 19:56:59 +02:00
parent 88bbb76752
commit 21591ad6b8
6 changed files with 35 additions and 57 deletions

View File

@ -92,14 +92,15 @@ class Map(object):
class LatLngLocation(Location):
def __init__(self, lat: float, lon: float, comment = None):
def __init__(self, lat: float, lon: float, comment=None):
self.lat = lat
self.lon = lon
self.comment = comment
def __dict__(self):
res = {"type": "latlon", "lat": self.lat, "lon": self.lon}
if self.comment is not None: res["comment"] = self.comment
if self.comment is not None:
res["comment"] = self.comment
return res