Skip to content

Commit

Permalink
fix: 길이 제한 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Apr 6, 2024
1 parent 0338c8b commit ab22e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ResponseEntity<ResponseDto<ItemSaveResponseDto>> itemSave(
return ResponseDto.created(response);
}

@Operation(summary = "특정 범위안에 있는 목탁 조회 500미터")
@Operation(summary = "특정 범위안에 있는 목탁 조회 5000미터")
@GetMapping
public ResponseEntity<ResponseDto<List<ItemSaveResponseDto>>> itemList(
AuthUser user,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/core/api/item/service/ItemService.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public List<ItemSaveResponseDto> itemList(BigDecimal latitude, BigDecimal longit
double lon = longitude.doubleValue();

return allItems.stream()
.filter(item -> GeoUtils.calculateDistance(lat, lon, item.getLatitude().doubleValue(), item.getLongitude().doubleValue()) <= 500)
.filter(item -> GeoUtils.calculateDistance(lat, lon, item.getLatitude().doubleValue(), item.getLongitude().doubleValue()) <= 5000)
.map(ItemSaveResponseDto::new)
.toList();
}
Expand Down

0 comments on commit ab22e1f

Please sign in to comment.