Repository navigation
Conversation
There was a problem hiding this comment.
🤖 AI 코드 리뷰 - 버그 관점
카카오 길찾기 API 실제 연동을 위한 구현체(KakaoRouteSearchRepository)를 추가하고, 기존 completion 기반 인터페이스를 async/throws로 전환한 PR이다. 엔드포인트, 응답 모델, 정렬 로직, 뷰모델의 Task 취소 처리까지 포함되어 있다. 전반적으로 구조는 타당하나, Task 취소 판정 시점과 @published 프로퍼티의 스레드 안전성에 명확한 버그가 있다.
sangYuLv
requested changes
Nov 3, 2026
sangYuLv
left a comment
Collaborator
There was a problem hiding this comment.
고생 많으셨습니다. 🦦
아래 내용 확인 부탁드립니다!
- TransportType에 transit 대신 열차와 버스를 각각 둬서, 아이콘이 따로 표시되게 하면 좋을 듯 합니다.
- 출발 시각 설정에 대해 방향을 수정하면 좋을 듯 합니다.
카카오 대중교통 API에 출발 시각 파라미터가 없다는 점 확인했습니다.
지금 방향대로 가면, 경로 검색 시각에 따라 결과가 달라질 것으로 예상됩니다.
새벽과 오후에 대중교통 운영이 다르기 때문입니다.
다른 참여자에게 출발 시각을 공유하기 위해 사용자의 출발 시각 입력이 필요한 점도 이해했습니다.
그래서 다음과 같은 방향으로 가보면 어떨까 제안드립니다.
- 출발 시각을 입력 받되, 다른 참여자에게 공유하기 위해 입력 받는다는 것을 사용자가 인지할 수 있도록 UI 수정 (경로 검색을 위한 입력이 아님을 인지시켜야 함)
- 사용자가 실제 약속 시간대와 반대되는 시간대에 경로 검색을 할 경우, 약속 시간대와 경로 추천이 다를 수 있음을 알리기 -> 시간대를 비교할 기준은 논의가 필요함
- 2번에서 다를 수 있음을 알린 후, 비슷한 시간대에 다시 검색할 것을 제안하고 끝내거나 비슷한 시간대가 돌아왔을 때 검색해서 알려줄지 물어보기
출발 시각 설정이 안 되는 게 앱 사용성에 큰 영향을 미칠 듯 합니다...
지금 생각나는 아이디어를 적었는데, 현재 PR에서 당장 수정하기에 어려워보여 가까운 회의일에 논의하는 것이 좋아보입니다! 다른 API를 사용하는 것도 고려해봅시다...
Collaborator
Author
|
@sangYuLv |
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.
JIRA
📝 작업 내용
📌 요약
Route/RouteStep으로 변환Route를 콜백으로 전달 (저장은 후속 작업)🔍 상세
[1] 카카오 길찾기 API 연동
dapi.kakao.com/v2/routing/walkdapi.kakao.com/v2/routing/publictrafficapis-navi.kakaomobility.com/v1/directions(대안 경로 포함)apis-navi.kakaomobility.com/v1/future/directionsKakaoRouteEndpoint: 기존KakaoLocalEndpoint와 같은 구조. case별로 baseURL 분기KakaoWalkRouteResponse,KakaoTransitRouteResponse,KakaoCarRouteResponsestatus != OK,result_code != 0)은 빈 배열로 변환KakaoRouteSearchRepository를 추가하고 DI에서 Mock 대신 등록[2] 응답 →
Route/RouteStep변환[경도, 위도]→CoordinateRouteStep1개.path는 전체 좌표를 이어 붙임steps를RouteStep으로 1:1 변환lineName: 한 구간을 여러 노선이 가는 경우 중복 제거 후 연결lineColorHex:KakaoTransitLineColor매핑(심야)로 구분전체 값 - 구간 합으로 빠진 시간·거리를 구하고, 앞뒤 직선거리 비율로 나눠 도보 구간을 추가 (1분 미만은 생략)[3] 추천 경로 정렬 (
SearchRoutesUseCase)소요시간 + 환승 1회당 5분→ 도보 시간.transit구간 수 - 1로 계산[4] 경로 검색 화면
AppError문구RouteStepItem.title)onRouteSelected:(() -> Void)?→((Route) -> Void)?💬 리뷰 노트
API 선택
searchDttm), 노선 색 제공대중교통 출발 시간
현재 기준 소요시간 + 선택한 출발 시각으로 도착 시각을 계산합니다. (배차, 첫차·막차는 반영되지 않습니다.)기타
TransportType.transit하나로 표현).추후 작업
appointments/{id}/routes/{userID}에 저장하고onRouteSelected를 코디네이터에 연결합니다.📸 영상 / 이미지
build.mov