Commit 473ffd7a authored by James Westman's avatar James Westman

I guess options aren't useful if they don't work...

Fix the altitude, accuracy, and heading options for the coords data
source
parent ab73a87a
......@@ -13,7 +13,12 @@ class Location:
@staticmethod
def from_args(args):
return Location(args.latitude, args.longitude, 0)
kwargs = {}
if args.accuracy is not None: kwargs["accuracy"] = args.accuracy
if args.altitude is not None: kwargs["altitude"] = args.altitude
if args.heading is not None: kwargs["heading"] = args.heading
return Location(args.latitude, args.longitude, **kwargs)
def __str__(self):
return "{}, {}".format(self.lat, self.lon)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment