platypush/platypush/message/event/geo.py

25 lines
573 B
Python
Raw Normal View History

from platypush.message.event import Event
class LatLongUpdateEvent(Event):
2018-07-09 22:37:54 +02:00
"""
Event triggered upon GPS location update
"""
2019-03-18 00:17:11 +01:00
def __init__(self, latitude, longitude, altitude=None, *args, **kwargs):
2018-07-09 22:37:54 +02:00
"""
:param latitude: GPS latitude
:type latitude: float
:param longitude: GPS longitude
:type longitude: float
2019-03-18 00:17:11 +01:00
:param altitude: GPS altitude
:type altitude: float
2018-07-09 22:37:54 +02:00
"""
2019-03-18 00:17:11 +01:00
super().__init__(*args, latitude=latitude, longitude=longitude, altitude=altitude, **kwargs)
# vim:sw=4:ts=4:et: