Location

@Serializable
data class Location(val longitude: Float, val latitude: Float, val horizontalAccuracy: Float? = null, val livePeriod: Int? = null, val heading: Int? = null, val proximityAlertRadius: Int? = null)

This object represents a point on the map.

Api reference

Constructors

Link copied to clipboard
constructor(longitude: Float, latitude: Float, horizontalAccuracy: Float? = null, livePeriod: Int? = null, heading: Int? = null, proximityAlertRadius: Int? = null)

Properties

Link copied to clipboard
val heading: Int? = null

Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.

Link copied to clipboard

Optional. The radius of uncertainty for the location, measured in meters; 0-1500

Link copied to clipboard

Latitude as defined by the sender

Link copied to clipboard
val livePeriod: Int? = null

Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.

Link copied to clipboard

Longitude as defined by the sender

Link copied to clipboard

Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.