Global Area Reference System Coordinate

Hierarchy

  • GARS

Constructors

  • Constructor

    Parameters

    • longitude: number

      longitudinal band number

    • latitude: string

      latitudinal band letters

    • quadrant: number = GARSConstants.DEFAULT_QUADRANT

      15 minute quadrant or GARSConstants.DEFAULT_QUADRANT if undefined

    • keypad: number = GARSConstants.DEFAULT_KEYPAD

      5 minute keypad or GARSConstants.DEFAULT_KEYPAD if undefined

    Returns GARS

Methods

  • Get the GARS coordinate with specified grid precision

    Returns

    GARS coordinate

    Parameters

    • type: GridType = GridType.FIVE_MINUTE

      grid type precision

    Returns string

  • {@inheritDoc}

    Parameters

    • obj: any

    Returns boolean

  • Get the 5 minute keypad

    Returns

    keypad

    Returns number

  • Get the latitudinal band letters

    Returns

    latitude band letters

    Returns string

  • Get the longitudinal band number

    Returns

    longitude band number

    Returns number

  • Get the 15 minute quadrant

    Returns

    quadrant

    Returns number

  • Convert to a point

    Returns

    point

    Returns Point

  • {@inheritDoc}

    Returns string

  • Create

    Returns

    GARS

    Parameters

    • longitude: number

      longitudinal band number

    • latitude: string

      latitudinal band letters

    • Optional quadrant: number

      15 minute quadrant

    • Optional keypad: number

      5 minute keypad

    Returns GARS

  • Convert the coordinate to GARS

    Returns

    GARS

    Parameters

    • longitude: number

      longitude

    • latitude: number

      latitude

    Returns GARS

  • Encodes a point as a GARS string

    Returns

    GARS

    Parameters

    • point: Point

      point

    Returns GARS

  • Return whether the given string is valid GARS string

    Returns

    true if GARS string is valid, false otherwise

    Parameters

    • gars: string

      potential GARS string

    Returns boolean

  • Parse a GARS string

    Returns

    GARS

    Parameters

    • gars: string

      GARS string

    Returns GARS

  • Parse the GARS string for the precision

    Returns

    grid type precision

    Parameters

    • gars: string

      GARS string

    Returns GridType

Generated using TypeDoc