Added altitude to LatLongUpdateEvent
This commit is contained in:
parent
8b89166e30
commit
710694e8d7
1 changed files with 5 additions and 3 deletions
|
@ -6,17 +6,19 @@ class LatLongUpdateEvent(Event):
|
||||||
Event triggered upon GPS location update
|
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
|
:param latitude: GPS latitude
|
||||||
:type latitude: float
|
:type latitude: float
|
||||||
|
|
||||||
:param longitude: GPS longitude
|
:param longitude: GPS longitude
|
||||||
:type longitude: float
|
: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:
|
# vim:sw=4:ts=4:et:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue