platypush/platypush/message/event/geo.py

23 lines
471 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
"""
def __init__(self, latitude, longitude, *args, **kwargs):
2018-07-09 22:37:54 +02:00
"""
:param latitude: GPS latitude
:type latitude: float
:param longitude: GPS longitude
:type longitude: float
"""
super().__init__(latitude=latitude, longitude=longitude, *args, **kwargs)
# vim:sw=4:ts=4:et: