# LatLngAltitude


```
public class LatLngAltitude implements Parcelable, Anchorable
```

<br />

*** ** * ** ***

A latitude/longitude pair with an altitude value.

## Summary

| ### Constants |
|---|---|
| `static final https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#DEFAULT_CENTER()` The default LatLngAltitude. |
| `static final double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#MAX_ALTITUDE_METERS() = 6.317E7` The maximum altitude allowed in the Maps SDK for 3D. |

| ### Public fields |
|---|---|
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#altitude()` |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#latitude()` |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#longitude()` |

| ### Public constructors |
|---|
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#LatLngAltitude(double,double,double)(double latitude, double longitude, double altitude)` Constructor for LatLngAltitude with parameters for required fields. |

| ### Public methods |
|---|---|
| `boolean` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable.html https://developer.android.com/reference/java/lang/Object.html o)` |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#getAltitude()()` The altitude of the point. |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#getLatitude()()` The latitude of the point. |
| `double` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#getLongitude()()` The longitude of the point. |
| `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#getPosition()()` |
| `int` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#hashCode()()` |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#setAltitude(double)(double altitude)` Sets the altitude of the point. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#setLatitude(double)(double latitude)` Sets the latitude of the point. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#setLongitude(double)(double longitude)` Sets the longitude of the point. |
| `void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

| ### Extension functions |
|---|---|
| `final void` | `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/ValidatorsKt.https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude#(com.google.android.gms.maps3d.model.LatLngAltitude).validate()(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude receiver)` Validates that the given `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` is correct. |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` `static final int` `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited methods

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract int` `https://developer.android.com/reference/android/os/Parcelable.html#describeContents()()`

## Constants

### DEFAULT_CENTER

```
public static final LatLngAltitude DEFAULT_CENTER
```

The default LatLngAltitude.

### MAX_ALTITUDE_METERS

```
public static final double MAX_ALTITUDE_METERS = 6.317E7
```

The maximum altitude allowed in the Maps SDK for 3D.

## Public fields

### altitude

```
public double altitude
```

### latitude

```
public double latitude
```

### longitude

```
public double longitude
```

## Public constructors

### LatLngAltitude

```
public LatLngAltitude(double latitude, double longitude, double altitude)
```

Constructor for LatLngAltitude with parameters for required fields.

| Parameters |
|---|---|
| `double latitude` | The latitude of the point. |
| `double longitude` | The longitude of the point. |
| `double altitude` | The altitude of the point. |

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### getAltitude

```
public double getAltitude()
```

The altitude of the point.

### getLatitude

```
public double getLatitude()
```

The latitude of the point.

### getLongitude

```
public double getLongitude()
```

The longitude of the point.

### getPosition

```
public LatLngAltitude getPosition()
```

### hashCode

```
public int hashCode()
```

### setAltitude

```
public void setAltitude(double altitude)
```

Sets the altitude of the point.

### setLatitude

```
public void setLatitude(double latitude)
```

Sets the latitude of the point.

### setLongitude

```
public void setLongitude(double longitude)
```

Sets the longitude of the point.

### writeToParcel

```
public void writeToParcel(Parcel dest, int flags)
```

## Extension functions

### ValidatorsKt.validate

```
public final void ValidatorsKt.validate(@NonNull LatLngAltitude receiver)
```

Validates that the given `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` is correct.

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | If the `https://developers.google.com/maps/documentation/maps-3d/android-sdk/reference/com/google/android/gms/maps3d/model/LatLngAltitude` is not valid. |