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.
- Deletes expired locations.
- Deletes POI locations that don’t have corresponding message anymore.
- Deletes location if it is an independent location.
- Returns
location.kml
contents. - 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.
- Returns whether
chat_id
or any chat is sending 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.