Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeographyPoint

Package version

Represents a geographic point in global coordinates.

Hierarchy

  • GeographyPoint

Index

Constructors

Properties

Methods

Constructors

constructor

  • new GeographyPoint(geographyPoint: { latitude: number; longitude: number }): GeographyPoint
  • Constructs a new instance of GeographyPoint given the specified coordinates.

    Parameters

    • geographyPoint: { latitude: number; longitude: number }

      object with longitude and latitude values in decimal

      • latitude: number
      • longitude: number

    Returns GeographyPoint

Properties

latitude

latitude: number

The latitude in decimal.

longitude

longitude: number

The longitude in decimal.

Methods

toJSON

  • toJSON(): Record<string, unknown>
  • Used to serialize to a GeoJSON Point.

    Returns Record<string, unknown>

Generated using TypeDoc