Package version:

Represents a geographic point in global coordinates.

Constructors

Properties

Methods

Constructors

  • 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: number

The latitude in decimal.

longitude: number

The longitude in decimal.

Methods

  • Used to serialize to a GeoJSON Point.

    Returns Record<string, unknown>