Skip to content

feat(subway): master_subway_station 마포 14역 좌표 채우기#171

Open
bat1120 wants to merge 1 commit into
devfrom
IM3-mapo-subway-coords
Open

feat(subway): master_subway_station 마포 14역 좌표 채우기#171
bat1120 wants to merge 1 commit into
devfrom
IM3-mapo-subway-coords

Conversation

@bat1120

@bat1120 bat1120 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • master_subway_station.lat/lon/sigungu_code 가 285행 모두 NULL 이던 상태에서 마포 14역 좌표 채움
  • raw: yoon-gu 공개 gist (서울 1-9호선 254역, Naver API 기반 + 수동 보정)
  • 매칭 키: 정규화 station_name (괄호 부속 + '역' 접미 제거) + line_name
  • DB UPDATE 14/14 RDS 적용 완료, verify errors=0

변경

  • backend/scripts/ingest/fill_subway_coords.py — DB UPDATE
  • backend/scripts/ingest/fill_subway_coords_csv.py — seed CSV in-place 갱신
  • backend/data/seed/raw/seoul_subway_stations_with_coords.csv — raw 254행
  • backend/data/seed/master_subway_station_all.csv — 마포 14행 좌표 채움
  • backend/scripts/verify/verify_emerging_trend_data.py — 좌표 coverage + bbox sanity

마포 14역 (호선·좌표)

역명 호선 lat lon
합정 2호선 37.5501 126.9146
홍대입구 2호선 37.5569 126.9237
마포 5호선 37.5396 126.9459
공덕 5호선·6호선 37.5445 126.9512
애오개 5호선 37.5534 126.9566
디지털미디어시티 6호선 37.5770 126.9016
월드컵경기장(성산) 6호선 37.5699 126.8990
마포구청 6호선 37.5634 126.9034
망원 6호선 37.5561 126.9100
합정 6호선 37.5491 126.9133
상수 6호선 37.5480 126.9227
광흥창(서강) 6호선 37.5476 126.9324
대흥(서강대앞) 6호선 37.5478 126.9424

한계 / 후속

  • raw 출처가 외부 gist — spot-check 권장
  • 1-8호선만 master 에 있음 (경의중앙선/공항철도 등은 별도 ingest 필요)
  • 서울 전체 285역 좌표 일괄 채우는 follow-up 가능

Verification

  • python -m scripts.ingest.fill_subway_coords (RDS UPDATE)
  • python -m scripts.verify.verify_emerging_trend_data → errors=0, with_coord=14/14
  • 좌표 sanity 카카오맵 cross-check (홍대입구 등 3-5역)

🤖 Generated with Claude Code

- raw 데이터: yoon-gu 공개 gist (서울 1-9호선 254역, Naver API 기반)
- 매칭 키: (정규화 station_name, line_name) → lat/lon UPDATE
- 마포 sigungu_code='11440' 14행 채움 (월드컵경기장 미설정 sigungu도 함께 보정)
- 신규 스크립트:
  - scripts/ingest/fill_subway_coords.py — DB UPDATE
  - scripts/ingest/fill_subway_coords_csv.py — seed CSV in-place 갱신
- verify_emerging_trend_data: 좌표 coverage + 마포 bbox sanity check 추가
- DB UPDATE 14/14 적용 완료, verify errors=0

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant