From 710694e8d7f96356ca7eea6ac7402a402c254abd Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 18 Mar 2019 00:17:11 +0100 Subject: [PATCH] Added altitude to LatLongUpdateEvent --- platypush/message/event/geo.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platypush/message/event/geo.py b/platypush/message/event/geo.py index 9a75f7867..3fc5dcacf 100644 --- a/platypush/message/event/geo.py +++ b/platypush/message/event/geo.py @@ -6,17 +6,19 @@ class LatLongUpdateEvent(Event): Event triggered upon GPS location update """ - def __init__(self, latitude, longitude, *args, **kwargs): + def __init__(self, latitude, longitude, altitude=None, *args, **kwargs): """ :param latitude: GPS latitude :type latitude: float :param longitude: GPS longitude :type longitude: float + + :param altitude: GPS altitude + :type altitude: float """ - super().__init__(latitude=latitude, longitude=longitude, *args, **kwargs) + super().__init__(*args, latitude=latitude, longitude=longitude, altitude=altitude, **kwargs) # vim:sw=4:ts=4:et: -