From c3348155eece9fb0ea265a799b4ed12e77160bc9 Mon Sep 17 00:00:00 2001 From: remeio <2663479778@qq.com> Date: Mon, 17 Apr 2023 10:51:24 +0800 Subject: [PATCH] Fix BoundingBox getWidth(), should return height value, not width value. --- .../org/springframework/data/redis/domain/geo/BoundingBox.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/redis/domain/geo/BoundingBox.java b/src/main/java/org/springframework/data/redis/domain/geo/BoundingBox.java index e8ded6c8a3..1881c50831 100644 --- a/src/main/java/org/springframework/data/redis/domain/geo/BoundingBox.java +++ b/src/main/java/org/springframework/data/redis/domain/geo/BoundingBox.java @@ -70,7 +70,7 @@ public BoundingBox(double width, double height, Metric metric) { * @return will never be {@literal null}. */ public Distance getWidth() { - return height; + return width; } /**