Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "functions/validate-coordinates"

Index

Functions

validateCoordinates

  • validateCoordinates(coordinates: LatLngLiteral, flag?: boolean): boolean
  • Validates coordinates and returns a boolean if valid, or throws an error if invalid.

    Parameters

    • coordinates: LatLngLiteral

      Coordinates to validate.

    • Default value flag: boolean = false

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

    Returns boolean

    Boolean if coordinates are valid.

Generated using TypeDoc