New to Claude Skills? Learn how to install them →

nomadamas on GitHub

Naver Map Route

Free

Automate driving directions with Naver Maps.

by nomadamas7.1k stars on nomadamas/k-skill
1 views
Updated Aug 8, 2026
Get this skill

Free · Opens the source repo

What Naver Map Route does

Naver Map Route is a skill designed for users who need to obtain driving directions using the Naver Cloud Platform Maps. By utilizing simple commands like /route or /이동루트, users can input their starting point and destination to receive a summary of the route, including distance, estimated travel time, toll fees, and fuel costs. This skill operates through a proxy server, ensuring that users do not need to manage API keys directly, which simplifies the integration process.

Currently, the skill operates in a mock mode by default, meaning that users will receive simulated responses unless the live mode is explicitly enabled. In live mode, the skill queries the Naver Maps Directions API to provide real-time data. Users can also convert addresses into coordinates for more accurate routing, making it versatile for various input formats. However, it is important to note that the skill is limited to car routes, and does not support walking, cycling, or public transport directions.

This skill is particularly useful for developers and designers who require a straightforward way to integrate driving directions into their applications or workflows without dealing with the complexity of API key management. It is suitable for scenarios where quick, reliable driving information is needed, such as logistics planning or travel applications. However, users should be aware that the skill is currently non-functional in live mode due to missing configuration on the proxy server, which restricts its use to mock responses only until the necessary setup is completed.

When to use it

Use this skill when you need to get driving directions quickly via simple commands.

When not to use it

Do not use this skill for walking, cycling, or public transport directions, as it is limited to car routing only.

What you can build with it

Logistics Planning

Use the skill to quickly obtain driving directions for delivery routes, helping to optimize logistics operations.

Travel Applications

Integrate this skill into travel apps to provide users with driving directions based on their input locations.

Address Conversion

Utilize the geocoding feature to convert user-provided addresses into coordinates for accurate routing.

How to install Naver Map Route

View source

1. Install with the skills CLI

npx skills add nomadamas/k-skill/naver-map-route --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by nomadamas

Naver Map Route (네이버 지도 길찾기 MVP)

⚠️ 현재 미작동 (2026-05-25): NCP Maps 운영자 키가 프록시 서버에 아직 설정되지 않아 live 모드가 동작하지 않습니다. mock fallback만 사용 가능합니다. NCP 결제수단 등록 완료 후 키를 설정하면 이 안내를 제거합니다.

What this skill does

사용자가 /route 또는 /이동루트 명령으로 출발지·목적지를 직접 입력하면, NAVER Cloud Platform Maps Directions 5 결과를 k-skill-proxy 경유로 조회하여 거리·소요 시간·통행료·연료비를 요약한다.

  • 운영자가 NCP Maps key를 proxy 서버 쪽에만 보관하고, 사용자는 별도 key가 필요하지 않다.
  • 기본 모드는 mock이다. 명시 활성화(ROUTE_PLANNER_ENABLE_LIVE_PROVIDER=true + ROUTE_PLANNER_PROVIDER=naver)될 때만 live proxy 호출을 수행한다.
  • 키 누락·인증 실패 시 graceful fallback으로 mock 결과를 안내한다.

이슈 #268 의 MVP 수용 기준:

  • /route 수동 입력 정상 응답
  • /이동루트 수동 입력 정상 응답
  • 기본 mock 모드에서 안정 동작
  • live 명시 활성화 + 키 존재 시 naver provider 선택
  • 키 누락/실패 시 fallback 응답
  • secret/token/.env 원문 미노출

When to use

  • "/route 강남역에서 시청역" 같은 한 줄 수동 입력
  • "/이동루트 출발: <주소> / 도착: <주소>"
  • "강남역에서 시청까지 차로 얼마나 걸려?" (수동 좌표/주소 입력으로 변환 후 길찾기)
  • 자동차 기준 경로 요약, 거리·소요 시간·통행료·연료비 확인

When NOT to use

  • 도보·자전거·대중교통 경로 (대중교통은 기존 korean-transit-route 스킬, 도보·자전거는 별도 스킬)
  • 실시간 교통 변동을 1분 단위로 추적하는 작업 (proxy cache가 있음)
  • 현재 위치 자동 인식 / 캘린더 연동 (MVP 범위 밖)

Prerequisites

  • Python 3 표준 라이브러리만 사용한다 (urllib, argparse, json).
  • optional: KSKILL_PROXY_BASE_URL (self-host·별도 프록시를 쓸 때만 설정. 비우면 기본 hosted https://k-skill-proxy.nomadamas.org).
  • optional: ROUTE_PLANNER_PROVIDER=naver (값이 naver일 때만 live provider 후보).
  • optional: ROUTE_PLANNER_ENABLE_LIVE_PROVIDER=true (live 호출을 명시 허용).

Required environment variables

사용자 머신에는 필요 없다. 운영자가 proxy 서버 쪽에 다음을 둔다:

  • NAVER_MAP_CLIENT_ID — NCP Maps subaccount client id
  • NAVER_MAP_CLIENT_SECRET — NCP Maps subaccount client secret

proxy 서버가 이 키 없이 가동되면 /v1/naver-map/* 라우트는 503 upstream_not_configured 를 돌려준다. 클라이언트는 이를 mock fallback 신호로 사용한다.

Decision flow

provider 결정
├── ROUTE_PLANNER_ENABLE_LIVE_PROVIDER != "true"
│     → mock 결과 반환
├── ROUTE_PLANNER_PROVIDER != "naver"
│     → mock 결과 반환
└── live 시도
      ├── proxy /v1/naver-map/directions 호출
      ├── 503 / 502 / 네트워크 실패
      │     → mock fallback + warning 메모
      └── 정상 응답
            → 요약 + provider="naver"

Proxy routes

endpointupstream주요 입력
GET /v1/naver-map/directionsNCP Maps Directions 5 (/map-direction/v1/driving)start=lng,lat, goal=lng,lat, waypoints (최대 5), option=trafast|tracomfort|traoptimal|traavoidtoll|traavoidcaronly, lang=ko
GET /v1/naver-map/geocodeNCP Maps Geocoding (/map-geocode/v2/geocode)q, coordinate, filter, language, page, count
GET /v1/naver-map/reverse-geocodeNCP Maps Reverse Geocoding (/map-reversegeocode/v2/gc)coords=lng,lat, orders=roadaddr,addr,legalcode,admcode, output=json

Workflow

1. 사용자 입력 정리

  • /route <start>, <goal> 또는 /이동루트 출발: <start> 도착: <goal> 패턴을 받는다.
  • 좌표(126.9706,37.5559) 또는 주소(강남역 1번 출구) 둘 다 허용. 주소는 geocode 단계로 좌표를 얻는다.

2. mock 모드 (기본)

ROUTE_PLANNER_ENABLE_LIVE_PROVIDER 가 비어 있거나 true가 아니면 즉시 mock 결과를 만든다:

{
  "provider": "mock",
  "start": { "label": "강남역", "lng": null, "lat": null },
  "goal": { "label": "시청역", "lng": null, "lat": null },
  "summary": {
    "distance_km": null,
    "duration_minutes": null,
    "toll_won": null,
    "fuel_won": null
  },
  "note": "live provider is disabled. Set ROUTE_PLANNER_PROVIDER=naver and ROUTE_PLANNER_ENABLE_LIVE_PROVIDER=true to call the proxy."
}

3. live 모드

ROUTE_PLANNER_PROVIDER=naver + ROUTE_PLANNER_ENABLE_LIVE_PROVIDER=true:

BASE="${KSKILL_PROXY_BASE_URL:-https://k-skill-proxy.nomadamas.org}"
curl -fsS --get "${BASE}/v1/naver-map/directions" \
  --data-urlencode 'start=126.9706,37.5559' \
  --data-urlencode 'goal=127.0276,37.4979' \
  --data-urlencode 'option=trafast'

응답에서 기본 option=trafast 기준 route.trafast[0].summary 를 읽고, 다른 option을 명시한 경우 route[option][0].summary 를 다음으로 매핑한다:

  • distance (meter) → distance_km = distance / 1000
  • duration (millisecond) → duration_minutes = duration / 60000
  • tollFaretoll_won
  • fuelPricefuel_won

4. 주소 → 좌표 변환 (필요할 때만)

사용자가 좌표를 모르고 주소만 줬을 때:

curl -fsS --get "${BASE}/v1/naver-map/geocode" \
  --data-urlencode 'q=강남역 1번 출구' \
  --data-urlencode 'count=1'

응답의 addresses[0].x (lng), addresses[0].y (lat) 를 사용한다.

5. 출력 포맷

[mock 모드]
경로 요약 (mock): 강남역 → 시청역
- 거리/소요시간/통행료 정보 없음
- live 활성화 방법: ROUTE_PLANNER_PROVIDER=naver, ROUTE_PLANNER_ENABLE_LIVE_PROVIDER=true

[live 모드]
경로 요약 (naver): 강남역(126.9706,37.5559) → 시청역(127.0276,37.4979)
- 거리: 12.3km
- 예상 소요시간: 25분
- 통행료: 1,200원
- 연료비: 1,500원
- 옵션: trafast
- 조회 시각: 2026-05-23T14:00:00.000Z

Failure modes

  • proxy upstream key 미설정 (NAVER_MAP_CLIENT_ID/SECRET 없음) → 503 upstream_not_configured → mock fallback
  • NCP Maps 인증 실패 (401/403) → proxy가 503 으로 변환 → mock fallback
  • NCP Maps quota/rate-limit (429) → proxy가 429 upstream_error 로 보존 → mock fallback + 재시도 간격 안내
  • 경로 미발견 (code != 0) → 502 upstream_semantic_error → 메시지와 함께 안내
  • 좌표 형식 오류 → 400 bad_request
  • 네트워크 실패 → 502 upstream_error → mock fallback

Done when

  • 사용자가 /route 또는 /이동루트 로 출발지·목적지를 줬을 때, mock 또는 live 결과로 한 가지가 명확히 응답된다.
  • live 응답에는 거리/시간/통행료/연료비/조회 시각이 정리되어 있다.
  • secret/token/.env 원문은 응답에 절대 노출되지 않는다.
  • live 실패 시 mock fallback 이 작동하고, fallback 임을 사용자에게 명시한다.

Notes

  • 본 MVP는 자동차 경로에 한정한다. 도보·자전거·대중교통은 별도 스킬을 사용한다.
  • waypoints 는 최대 5개 (NCP Maps 정책).
  • option=trafast(빠른 경로) 가 기본. 정확한 정의는 NCP Maps Directions 5 공식 문서를 참고.
  • proxy 운영/환경변수 설정은 docs/features/k-skill-proxy.md 를 참고한다.
  • 현재 위치 자동 인식·캘린더 읽기는 의도적으로 범위에서 제외된다(이슈 #268 OUT).

Frequently asked questions about Naver Map Route

Similar skills