# LocationKt

Added in 1.1.0

*** ** * ** ***


```
public final class LocationKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final double` | `https://developer.android.com/reference/androidx/core/location/LocationKt#(android.location.Location).component1()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/location/Location.html receiver)` Returns the latitude of this `https://developer.android.com/reference/android/location/Location.html`. |
| `static final double` | `https://developer.android.com/reference/androidx/core/location/LocationKt#(android.location.Location).component2()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/location/Location.html receiver)` Returns the longitude of this `https://developer.android.com/reference/android/location/Location.html`. |

## Public methods

### component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/location/Location.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final double component1(@NonNull Location receiver)
```

Returns the latitude of this `https://developer.android.com/reference/android/location/Location.html`.

This method allows to use destructuring declarations when working with `https://developer.android.com/reference/android/location/Location.html`, for example:

```
val (lat, lon) = myLocation
```

### component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/location/Location.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final double component2(@NonNull Location receiver)
```

Returns the longitude of this `https://developer.android.com/reference/android/location/Location.html`.

This method allows to use destructuring declarations when working with `https://developer.android.com/reference/android/location/Location.html`, for example:

```
val (lat, lon) = myLocation
```