malgleam/area

생활기상지수 지점코드 및 체감온도 요청코드. 행정구역코드 기반 17개 시·도 상수를 제공한다.

Types

생활기상지수 지점코드 (행정구역코드).

pub opaque type AreaCode

체감온도(여름철) 서비스대상.

pub type RequestCode {
  Elderly
  Children
  Rural
  Greenhouse
  Vulnerable
  Road
  Construction
  Shipyard
}

Constructors

  • Elderly

    A41 — 노인

  • Children

    A42 — 어린이

  • Rural

    A44 — 농촌

  • Greenhouse

    A45 — 비닐하우스

  • Vulnerable

    A46 — 취약거주환경

  • Road

    A47 — 도로

  • Construction

    A48 — 건설현장

  • Shipyard

    A49 — 조선소

Values

pub fn area_code_to_string(code: AreaCode) -> String

AreaCode를 API 요청용 문자열로 변환한다.

pub const busan: AreaCode
pub const chungbuk: AreaCode
pub const chungnam: AreaCode
pub const daegu: AreaCode
pub const daejeon: AreaCode
pub const gangwon: AreaCode
pub const gwangju: AreaCode
pub const gyeongbuk: AreaCode
pub const gyeonggi: AreaCode
pub const gyeongnam: AreaCode
pub const incheon: AreaCode
pub const jeju: AreaCode
pub const jeonbuk: AreaCode
pub const jeonnam: AreaCode
pub fn request_code_to_string(code: RequestCode) -> String

RequestCode를 API 요청용 문자열(“A41”~“A49”)로 변환한다.

pub const sejong: AreaCode
pub const seoul: AreaCode
pub const ulsan: AreaCode
Search Document