Options
All
  • Public
  • Public/Protected
  • All
Menu

A LatLngAltitude is a 3D point in geographical coordinates: latitude, longitude, and altitude.

  • Latitude ranges between -90 and 90 degrees, inclusive. Values above or below this range will be clamped to the range [-90, 90]. This means that if the value specified is less than -90, it will be set to -90. And if the value is greater than 90, it will be set to 90.
  • Longitude ranges between -180 and 180 degrees, inclusive. Values above or below this range will be wrapped so that they fall within the range. For example, a value of -190 will be converted to 170. A value of 190 will be converted to -170. This reflects the fact that longitudes wrap around the globe.
  • Altitude is measured in meters. Positive values denote heights above ground level, and negative values denote heights underneath the ground surface.

Access by calling const {LatLngAltitude} = await google.maps.importLibrary("core"). See https://developers.google.com/maps/documentation/javascript/libraries.

Hierarchy

  • LatLngAltitude

Implements

Index

Constructors

Properties

Methods

Constructors

  • A LatLngAltitude is a 3D point in geographical coordinates: latitude, longitude, and altitude.

    • Latitude ranges between -90 and 90 degrees, inclusive. Values above or below this range will be clamped to the range [-90, 90]. This means that if the value specified is less than -90, it will be set to -90. And if the value is greater than 90, it will be set to 90.
    • Longitude ranges between -180 and 180 degrees, inclusive. Values above or below this range will be wrapped so that they fall within the range. For example, a value of -190 will be converted to 170. A value of 190 will be converted to -170. This reflects the fact that longitudes wrap around the globe.
    • Altitude is measured in meters. Positive values denote heights above ground level, and negative values denote heights underneath the ground surface.

    Access by calling const {LatLngAltitude} = await google.maps.importLibrary("core"). See https://developers.google.com/maps/documentation/javascript/libraries.

    Parameters

    • value: LatLng | LatLngLiteral | LatLngAltitudeLiteral

      The initializing value.

    • Optional noClampNoWrap: boolean

      Whether to preserve the initialization values, even if they may not necessarily be valid latitude values in the range of [-90, 90] or valid longitude values in the range of [-180, 180]. The default is false which enables latitude clamping and longitude wrapping.

    Returns LatLngAltitude

Properties

altitude: number

Returns the altitude.

lat: number

Returns the latitude.

lng: number

Returns the longitude.

Methods

  • Comparison function.

    Parameters

    Returns boolean

Generated using TypeDoc