package com.kamco.cd.kamcoback.Innopam.utils;

public class MapIdUtils {

  private MapIdUtils() {
    // util class
  }

  /** map_id → 시도코드 예: 34602060 → "34" */
  public static String sidoCodeFromMapId(long mapId) {
    String s = String.valueOf(mapId);
    if (s.length() < 2) {
      throw new IllegalArgumentException("잘못된 map_id: " + mapId);
    }
    return s.substring(0, 2);
  }
}
