Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeoCoordinates

GeoCoordinates is used to represent geo positions.

Hierarchy

  • GeoCoordinates

Implements

Index

Constructors

constructor

  • new GeoCoordinates(latitude: number, longitude: number, altitude?: undefined | number): GeoCoordinates

Properties

Optional altitude

altitude: undefined | number

Altitude in meters.

latitude

latitude: number

Latitude in degrees.

longitude

longitude: number

Longitude in degrees.

Accessors

lat

  • get lat(): number

latitudeInDegrees

  • get latitudeInDegrees(): number

latitudeInRadians

  • get latitudeInRadians(): number

lng

  • get lng(): number

longitudeInDegrees

  • get longitudeInDegrees(): number

longitudeInRadians

  • get longitudeInRadians(): number

Methods

clone

copy

equals

isValid

  • isValid(): boolean

minLongitudeSpanTo

normalized

toGeoPoint

toLatLng

Static fromDegrees

  • fromDegrees(latitude: number, longitude: number, altitude?: undefined | number): GeoCoordinates

Static fromGeoPoint

Static fromLatLng

Static fromObject

Static fromRadians

  • fromRadians(latitude: number, longitude: number, altitude?: undefined | number): GeoCoordinates

Static lerp

  • Returns a GeoCoordinates resulting from the linear interpolation of other two.

    default

    false

    Parameters

    • geoCoords0: GeoCoordinates

      One of the GeoCoordinates used for interpolation.

    • geoCoords1: GeoCoordinates

      The other GeoCoordinates used for interpolation.

    • factor: number

      Interpolation factor. If 0 result will be equal to geoCoords0, if 1 it'll be equal to geoCoords1.

    • Default value wrap: boolean = false

      If true, interpolation will be done across the antimeridian, otherwise it's done across the Greenwich meridian. Supported only if longitude span is less than 360 deg.

    • Default value normalize: boolean = false

      If true, interpolation result will be normalized. @default false

    Returns GeoCoordinates

Generated using TypeDoc