diff --git a/src/edu/usf/cutr/opentripplanner/android/util/LocationUtil.java b/src/edu/usf/cutr/opentripplanner/android/util/LocationUtil.java index 4f0ca624..22a84d3d 100644 --- a/src/edu/usf/cutr/opentripplanner/android/util/LocationUtil.java +++ b/src/edu/usf/cutr/opentripplanner/android/util/LocationUtil.java @@ -112,8 +112,8 @@ public static boolean checkPointInBoundingBox(LatLng location, Server selectedSe Location.distanceBetween(locationLat, locationLon, upLat, upLon, resultUp); Location.distanceBetween(locationLat, locationLon, downLat, downLon, resultDown); - Location.distanceBetween(upLat, leftLon, upLat, rightLon, resultHorizontal); - Location.distanceBetween(upLat, leftLon, downLat, leftLon, resultVertical); + Location.distanceBetween(locationLat, leftLon, locationLat, rightLon, resultHorizontal); + Location.distanceBetween(upLat, locationLon, downLat, locationLon, resultVertical); if(resultLeft[0]+resultRight[0]-resultHorizontal[0] > acceptableError){ return false;