LatLngAltitude

public class LatLngAltitude implements Parcelable


A latitude/longitude pair with an altitude value.

Summary

Constants

static final Parcelable.Creator<LatLngAltitude>
static final LatLngAltitude
static final double

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

Public fields

double
double
double

Public constructors

LatLngAltitude(double latitude, double longitude, double altitude)

Constructor for LatLngAltitude with parameters for required fields.

Public methods

double

The altitude of the point.

double

The latitude of the point.

double

The longitude of the point.

void
setAltitude(double altitude)

Sets the altitude of the point.

void
setLatitude(double latitude)

Sets the latitude of the point.

void
setLongitude(double longitude)

Sets the longitude of the point.

void
writeToParcel(Parcel dest, int flags)

Extension functions

final void

Validates that the given LatLngAltitude is correct.

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<LatLngAltitudeCREATOR

DEFAULT_CENTER

public static final LatLngAltitude DEFAULT_CENTER

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

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.

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 LatLngAltitude is correct.