Skip to content

Commit

Permalink
fix: 지번 주소로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
m020202 committed Aug 22, 2024
1 parent edd0af0 commit ccaab6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public String getRoadNameAddress(double latitude, double longitude) {
RestTemplate restTemplate = new RestTemplate();
UriComponentsBuilder uriBuilder = UriComponentsBuilder.fromHttpUrl(apiUrl)
.queryParam("coords", longitude + "," + latitude) // 좌표 순서 확인
.queryParam("orders", "roadaddr") // 도로명 주소를 요청
.queryParam("orders", "addr") // 지번 주소를 요청
.queryParam("output", "json");

HttpHeaders headers = new HttpHeaders();
Expand Down

0 comments on commit ccaab6b

Please sign in to comment.