new GeoRef()
경위도 좌표를 GeoRef(Geographic Reference System)형식으로 변환하는 클래스이다.
Methods
(static) Geo2GeoRef(latitude, longitude) → {string}
경위도를 GeoRef 좌표값으로 변환한다.
Parameters:
Name | Type | Description |
---|---|---|
latitude |
number | 위도 좌표값(decimal degree) |
longitude |
number | 경도 좌표값(decimal degree) |
Returns:
GeoRef 좌표값을 반환한다.
- Type
- string
(static) GeoRef2Geo(georef) → {string}
GeoRef 좌표값을 경위도 좌표값으로 변환한다.
Parameters:
Name | Type | Description |
---|---|---|
georef |
number | GeoRef 좌표값(14자리) |
Returns:
공백문자를 포함한 경/위도 좌표값을 리턴하고, GeoRef 입력값이 14자리가 아닐 경우 빈문자를 반환한다.
- Type
- string