[Feature] 지하철 노선에 따라 정렬 방식 다르게 설정 #36
Merged
+74
−58
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.
📌 개요
📝 작업사항
-
검색한 지하철역
이 포함된 서울 자치구에 속하는 모든 공간들 필터링해오기- 이 때, 공간마다
공간~공간이 속하는 자치구 모든 지하철역
거리가 DB에 저장되어있음.ex) 서초구에 속하는 장소 -> { "교대": 2787, "서초": 2270, "방배": 1876 }
- 해당 데이터에서 검색한 지하철역을 key값으로 하는 도보거리 value(공간~해당 역의 도보거리)를 오름차순 정렬해 반환
- Tmap의 OpenAPI 사용
- 검색한 역 ~
검색한 지하철역
이 포함된 서울 자치구에 속하는 모든 공간들 도보거리 각각 모두 API로 실시간 받아와서 오름차순 정렬 후 반환📣 변경로직