Location

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

Location

This object represents a point on the map.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(latitude: Float, longitude: 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
@SerialName(value = "horizontal_accuracy")
val horizontalAccuracy: Float? = null

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

Link copied to clipboard

Latitude as defined by sender

Link copied to clipboard
@SerialName(value = "live_period")
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 sender

Link copied to clipboard
@SerialName(value = "proximity_alert_radius")
val proximityAlertRadius: Int? = null

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