- Package:
- libgis-distance-perl
- Source:
- libgis-distance-perl
- Submitter:
- Dan Jacobson
- Date:
- 2023-12-10 00:30:02 UTC
- Severity:
- normal
Man page has
my $point1 = Geo::Point->latlong( $lat1, $lon1 );
but
Can't locate object method "latlong" via package "Geo::Point" (perhaps
you forgot to load "Geo::Point"?)
Therefore where to get Geo::Point should at least be in the Package Recommends.
No, it's not in libgeo-distance-perl.
Hi, it's in its own distribution, Geo::Point, see https://metacpan.org/dist/Geo-Point/view/lib/Geo/Point.pod, which is not currently packaged for Debian. However that's just sugar because, as the manpage explains, you can just feed the decimal latitude and longitude to the distance method directly: # Returns a Class::Measure object. my $distance = $gis->distance( $lat1, $lon1, $lat2, $lon2 ); Florian
On https://metacpan.org/pod/Geo::Distance is says Deprecated. The maintainer of this distribution has indicated that it is deprecated and no longer suitable for use. So it is time to remove this package from Debian! Thanks. I made a separate bug report about it.
It is all too confusing. I'll leave it to others to straighten out. As far a packages that don't seem to work as their man pages say, I sure hope there is at least a README file in their doc directories about it.