docs

# Location

interface Location : Locationed, HorizontallyAccured
Content copied to clipboard

Common interface for any known telegram location. Use LocationSerializer in case you wish to serialize/deserialize Location

## See also

dev.inmo.tgbotapi.extensions.utils.asStaticLocation
dev.inmo.tgbotapi.extensions.utils.asLiveLocation

## Properties

horizontalAccuracy
Link copied to clipboard
abstract val horizontalAccuracy : Meters ?
Content copied to clipboard
latitude
Link copied to clipboard
abstract val latitude : Double
Content copied to clipboard
longitude
Link copied to clipboard
abstract val longitude : Double
Content copied to clipboard

## Inheritors

StaticLocation
Link copied to clipboard
LiveLocation
Link copied to clipboard

## Extensions

asLiveLocation
Link copied to clipboard
inline fun Location . asLiveLocation (): LiveLocation ?
Content copied to clipboard
asStaticLocation
Link copied to clipboard
inline fun Location . asStaticLocation (): StaticLocation ?
Content copied to clipboard
requireLiveLocation
Link copied to clipboard
inline fun Location . requireLiveLocation (): LiveLocation
Content copied to clipboard
requireStaticLocation
Link copied to clipboard
inline fun Location . requireStaticLocation (): StaticLocation
Content copied to clipboard
whenLiveLocation
Link copied to clipboard
inline fun < T > Location . whenLiveLocation (block: ( LiveLocation ) -> T ): T ?
Content copied to clipboard
whenStaticLocation
Link copied to clipboard
inline fun < T > Location . whenStaticLocation (block: ( StaticLocation ) -> T ): T ?
Content copied to clipboard