Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #59 from vreixo/issue40
Browse files Browse the repository at this point in the history
Fix #40 - Bounding box calculations are more accurate now.
  • Loading branch information
barbeau committed Oct 2, 2013
2 parents 8c7eaaa + 541fe89 commit 443d7bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 443d7bd

Please sign in to comment.