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.