From 435bd40f9d3128f531a5b6ef2769efdb809159b7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Batels Date: Wed, 10 Aug 2022 21:37:59 -0300 Subject: [PATCH] Location accuracy and other props Location struct changed to provide horizontal_accuracy, live_period and heading informations. They are optional, but very useful for live locations. --- raw/src/types/message.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/raw/src/types/message.rs b/raw/src/types/message.rs index 19178afb47..f04de60296 100644 --- a/raw/src/types/message.rs +++ b/raw/src/types/message.rs @@ -875,6 +875,12 @@ pub struct Location { pub longitude: Float, /// Latitude as defined by sender. pub latitude: Float, + /// The radius of uncertainty for the location, measured in meters. 0~1500m + pub horizontal_accuracy: Option, + /// Time(in seconds) relative to the message sending date, during which the location can be updated. For active live locations only. + pub live_period: Option, + /// The direction in which user is moving, in degrees(1~360°). For active live locations only. + pub heading: Option, } /// This object represents a venue.