[aprssig] HAM::APRS::FAP question
Andrew Rich
vk4tec at tech-software.net
Mon Nov 30 07:59:34 EST 2009
Found it
if ($retval == 1) {
print $packet{srccallsign}.",";
printf(
"Position: latitude %.4f longitude %.4f\n",
$packet{'latitude'}, $packet{'longitude'}
) if (defined $packet{'latitude'});
#print "Comment: $packet{comment}\n" if defined $packet{'comment'};
#print "\n";
#print Dumper(\%packet);
}
----- Original Message -----
From: Andrew Rich
To: TAPR APRS Mailing List
Sent: Monday, November 30, 2009 10:47 PM
Subject: [aprssig] HAM::APRS::FAP question
I have the same APRS parser running as aprs.fi, I am a tad confused now how to get the call, lat and lon from the script ?
Here is a sample screen dump
How do I reference the lat and lon to be able to place into a MySQL table ( I know how to do that bit)
$VAR1 = {
'symbolcode' => '-',
'longitude' => '153.228333333333',
'symboltable' => '/',
'dstcallsign' => 'APU25N',
'digipeaters' => [
{
'wasdigied' => 1,
'call' => 'TCPIP'
},
{
'wasdigied' => 0,
'call' => 'qAC'
},
{
'wasdigied' => 0,
'call' => 'T2AUST'
}
],
'body' => '=2731.26S/15313.70E-Steve\'s QTH in Alexandra Hills {UIV32N}
',
'comment' => 'Steve\'s QTH in Alexandra Hills {UIV32N}',
'posresolution' => '18.52',
'latitude' => '-27.521',
'posambiguity' => 0,
'messaging' => 1,
'origpacket' => 'VK4ISP>APU25N,TCPIP*,qAC,T2AUST:=2731.26S/15313.70E-Steve\'s QTH in Alexandra Hills {UIV32N}
',
'type' => 'location',
'srccallsign' => 'VK4ISP',
'header' => 'VK4ISP>APU25N,TCPIP*,qAC,T2AUST'
};
Andrew VK4TEC
------------------------------------------------------------------------------
_______________________________________________
aprssig mailing list
aprssig at tapr.org
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.426 / Virus Database: 270.14.87/2535 - Release Date: 11/29/09 19:31:00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/aprssig_lists.tapr.org/attachments/20091130/9f93addf/attachment.html>
More information about the aprssig
mailing list