Expand description
Location handling.
Delta Chat handles two kind of locations.
There are two kinds of locations:
- Independent locations, also known as Points of Interest (POI).
- Path locations.
Locations are sent as KML attachments.
Independent locations are sent in message.kml
attachments
and path locations are sent in location.kml
attachments.
Structs§
- KML document.
- Location record.
Enums§
- KmlTag π
Functions§
- Deletes all locations from the database.
- delete_
expired πDeletes expired locations. - Deletes POI locations that donβt have corresponding message anymore.
- delete_
poi_ πlocation Deletes location if it is an independent location. - Returns
location.kml
contents. - get_
kml_ πtimestamp - Returns a KML document containing a single location with the given timestamp and coordinates.
- Searches for locations in the given time range, optionally filtering by chat and contact IDs.
- is_
marker π - Returns whether
chat_id
or any chat is sending locations. - location_
loop π - maybe_
send_ πlocations Returns number of seconds until the next time location streaming for some chat ends automatically. - save πSaves given locations to the database.
- Enables location streaming in chat identified by
chat_id
forseconds
seconds. - Sets current location of the user device.
- Sets the timestamp of the last time location was sent in the chat.
- Sets the location of the message.