Constructors
constructor
- new GARS(longitude: number, latitude: string, quadrant?: number, keypad?: number): GARS
-
Parameters
-
longitude: number
-
latitude: string
-
quadrant: number = GARSConstants.DEFAULT_QUADRANT
-
keypad: number = GARSConstants.DEFAULT_KEYPAD
Methods
coordinate
- coordinate(type?: GridType): string
-
Returns string
equals
- equals(obj: any): boolean
-
Returns boolean
getKeypad
- getKeypad(): number
-
Returns number
getLatitude
- getLatitude(): string
-
Returns string
getLongitude
- getLongitude(): number
-
Returns number
getQuadrant
- getQuadrant(): number
-
Returns number
toPoint
- toPoint(): Point
-
Returns Point
toString
- toString(): string
-
Returns string
Static
create
- create(longitude: number, latitude: string, quadrant?: number, keypad?: number): GARS
-
Parameters
-
longitude: number
-
latitude: string
-
Optional
quadrant: number
-
Optional
keypad: number
Static
from
- from(longitude: number, latitude: number): GARS
-
Parameters
-
longitude: number
-
latitude: number
Static
fromPoint
- fromPoint(point: Point): GARS
-
Static
isGARS
- isGARS(gars: string): boolean
-
Returns boolean
Static
parse
- parse(gars: string): GARS
-
Global Area Reference System Coordinate