Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "functions/validate-hash"

Index

Functions

Functions

validateHash

  • validateHash(geohash: string, flag?: boolean): boolean
  • Validates a Geohash and returns a boolean if valid, or throws an error if invalid.

    Parameters

    • geohash: string

      The Geohash to be validated.

    • Default value flag: boolean = false

      Tells function to send up boolean if valid instead of throwing an error.

    Returns boolean

    Boolean if Geohash is valid.

Generated using TypeDoc