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Β§
EnumsΒ§
- KmlTag π
FunctionsΒ§
- delete_
all - Deletes all locations from the database.
- delete_
expired π - Deletes expired locations.
- delete_
orphaned_ πpoi_ locations - Deletes POI locations that donβt have corresponding message anymore.
- delete_
poi_ πlocation - Deletes location if it is an independent location.
- get_kml
- Returns
location.kml
contents. - get_
kml_ πtimestamp - get_
message_ kml - Returns a KML document containing a single location with the given timestamp and coordinates.
- get_
range - Searches for locations in the given time range, optionally filtering by chat and contact IDs.
- is_
marker π - is_
sending_ locations_ to_ chat - 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.
- send_
locations_ to_ chat - Enables location streaming in chat identified by
chat_id
forseconds
seconds. - set
- Sets current location of the user device.
- set_
kml_ sent_ timestamp - Sets the timestamp of the last time location was sent in the chat.
- set_
msg_ location_ id - Sets the location of the message.