Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Geokit

A class for the Geokit.

Hierarchy

  • Geokit

Index

Methods

Static decodeHash

  • Decodes a Geohash into a LatLngLiteral.

    Parameters

    • hash: string

      Geohash string.

    Returns LatLngLiteral

    Coordinates to hash.

Static distance

  • Get the distance between two coordinates.

    Parameters

    • start: LatLngLiteral

      Starting coordinates.

    • end: LatLngLiteral

      Ending coordinates.

    • Default value unit: string = "km"

      Unit of distance returned, defaults to Km.

    Returns number

    The distance between two coordinates.

Static hash

  • Get the geohash of a point.

    Parameters

    • coordinates: LatLngLiteral

      Coordinates to hash.

    • Default value precision: number = 10

      Precision of hash desired, defaults to 10.

    Returns string

    Geohash of point.

Generated using TypeDoc