androidx.core.location

Extension functions summary

For android.location.Location
operator Double

Returns the latitude of this Location.

operator Double

Returns the longitude of this Location.

Extension functions

component1

inline operator fun Location.component1(): Double

Returns the latitude of this Location.

This method allows to use destructuring declarations when working with Location, for example:


val (lat, lon) = myLocation

component2

inline operator fun Location.component2(): Double

Returns the longitude of this Location.

This method allows to use destructuring declarations when working with Location, for example:


val (lat, lon) = myLocation