M9N GPS: Determine Distance and Course to Waypoint

I am using the SF Neo-M9N GPS # 15712 with an Arduino (Uno or possibly Nano Every).

I would like it to calculate the Distance and Course to a User Define Waypoint (perhaps Home Base, etc) from my current location Lat/Long.

Not sure if this Ublox unit will work with TinyGPS++ Library ?

I did find logic online for that library that I would like to mimic. See below:

Distance_To_Home = TinyGPSPlus::distanceBetween(gps.location.lat(),gps.location.lng(),Home_LATarray[ac], Home_LONarray[ac]); //Query Tiny GPS for Distance to Destination

GPS_Course = TinyGPSPlus::courseTo(gps.location.lat(),gps.location.lng(),Home_LATarray[ac],Home_LONarray[ac]); //Query Tiny GPS for Course to Destination

Any idea how to use this code or mimic in M9N ?

Any sample code with similar functionality I can use specific to M9N that anyone is aware of ?

Didn’t see anything online other then above.

Many Thanks