2 # show the heading and distance for each callsign or prefix entered
7 my ($self, $line) = @_;
8 my @list = split /\s+/, $line; # generate a list of callsigns
12 my $lat = $self->user->lat;
13 my $long = $self->user->long;
14 if (!$long && !$lat) {
15 push @out, $self->msg('heade1');
16 $lat = $main::mylatitude;
17 $long = $main::mylongitude;
22 my @ans = Prefix::extract($l);
27 my ($b, $dx) = DXBearing::bdist($lat, $long, $a->{lat}, $a->{long});
28 my ($r, $rdx) = DXBearing::bdist($a->{lat}, $a->{long}, $lat, $long);
29 push @out, sprintf "%-9s (%s, %s) Bearing: %.0f Recip: %.0f %.0fKm %.0fMi", uc $l, $pre, $a->name(), $b, $r, $dx, $dx * 0.62133785;