Install libnet-gpsd3-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-gpsd3-perl
Description:
Perl interface to the gpsd server daemon protocol version 3 (JSON)
Net::GPSD3 provides an object client interface to the gpsd server daemon utilizing the version 3.1 protocol. gpsd is an open source GPS daemon from http://gpsd.berlios.de/. Support for Version 3 of the protocol (JSON) was adding to the daemon in version 2.90. If your daemon is before 2.90 then please use the Net::GPSD package.
Homepage: https://metacpan.org/release/Net-GPSD3/
Version: 0.19-1
Section: universe/perl