public static BoundingBox buildClickBoundingBox ( LatLng latLng , View view , GoogleMap map , float screenClickPercentage ) { LatLngBoundingBox latLngBoundingBox = buildClickLatLngBoundingBox ( latLng , view , map , screenClickPercentage ) ; // Create the bounding box to query for features BoundingBox boundingBox = new BoundingBox ( latLngBoundingBox . getLeftCoordinate ( ) . longitude , latLngBoundingBox . getDownCoordinate ( ) . latitude , latLngBoundingBox . getRightCoordinate ( ) . longitude , latLngBoundingBox . getUpCoordinate ( ) . latitude ) ; return boundingBox ; }
Build a bounding box using the click location map view map and screen percentage tolerance . The bounding box can be used to query for features that were clicked