All Downloads are FREE. Search and download functionalities are using the official Maven repository.

telegramium.bots.Location.scala Maven / Gradle / Ivy

There is a newer version: 9.711.0
Show newest version
package telegramium.bots

/** This object represents a point on the map.
  *
  * @param latitude
  *   Latitude as defined by the sender
  * @param longitude
  *   Longitude as defined by the sender
  * @param horizontalAccuracy
  *   Optional. The radius of uncertainty for the location, measured in meters; 0-1500
  * @param livePeriod
  *   Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For
  *   active live locations only.
  * @param heading
  *   Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
  * @param proximityAlertRadius
  *   Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent
  *   live locations only.
  */
final case class Location(
  latitude: Float,
  longitude: Float,
  horizontalAccuracy: Option[Float] = Option.empty,
  livePeriod: Option[Int] = Option.empty,
  heading: Option[Int] = Option.empty,
  proximityAlertRadius: Option[Int] = Option.empty
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy