Repository navigation
fix: 숫자가 든 역 이름의 좌표 변환 실패 수정 - #282
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 요약
geocodeLocation은(로|길|동|읍|면|리)뒤에 숫자가 오면 입력을 도로명 주소로 판정합니다. 그래서을지로3가역,종로3가역,종로5가역같은 역 이름이 주소 경로(matchesAddress)로 들어가고,가역토큰과 숫자 목록이 주소와 일치하지 않아 항상null이 반환됐습니다. CGV, 메가박스, 롯데시네마, 오피넷 위치 검색이위치를 좌표로 변환하지 못했습니다: 을지로3가역으로 실패합니다.역으로 끝나는 입력은 주소로 판정하지 않고 기존 장소 검색 경로(matches의 역 이름 규칙)를 쓰도록 했습니다.관련 이슈
체크리스트
npm run format:check통과npm run lint통과npm run typecheck통과npm test통과테스트 방법
tests/utils/geocode-fallback.test.ts에을지로3가역,종로3가역케이스를 추가했습니다. 수정 전 코드에서는 두 케이스가expected null to deeply equal { latitude: 37.57, … }로 실패하고, 수정 후 통과합니다.참고 사항
node:24컨테이너에서npm run check의 각 단계(format:check, lint, lint:biome, typecheck, check:source-lines, test)를 실행했고 모두 통과했습니다(테스트 3623개). 커버리지는 100%를 유지합니다.npm run check가 exit 1로 끝났지만, 이어서npm test를 두 번 다시 실행했을 때는 모두 통과해 간헐적 실패로 보입니다. 실패한 테스트 이름은 기록하지 못했습니다.npm run build,wrangler dev, 실제 Kakao/Naver API 호출은 실행하지 않았습니다.서면 1번출구처럼역으로 끝나지 않으면서 같은 패턴에 걸리는 입력은 이 PR 범위에 포함하지 않았습니다.