There is a couple of options, one is multiple sonars in multiple directions that is probably the simplest way to do it but also the most expensive.
The other would be to rotate the sonar and scan around the boat. Its not that hard, you just need to use my rotating rangefinder lua script and a servo to be able to turn the rangefinder.