This script provides an XML interface to
, so you don't
need to have direct access to the aprsworld or findu databases,
or know SQL, in order to get generalized and standardly formatted
APRS data directly from the Internet into your application. Free
code libraries for parsing XML are easy to find for almost any
As new minor versions of this script are made available, they
will reside in their own directory containing the version number,
so you can safely link to a script without future upgrade changes
affecting anything. (bugfix-level versions will not have their own directory)
The data is provided by aprsworld.net
by Jim Jarvis KB0THN. APRS was created by, and is a trademark
of, Bob Bruninga WB4APR.
- Brad N8QQ
|Find a Station
This returns an XML document for the most recent packet from a station:
You can also retrieve information for multiple stations at one
time by providing multiple "call" arguments, such as: "report.cgi?call=n8qq&call=n8qq-2&call=n8qq-7"
|Filter with XQL
You can filter results with XQL
queries by adding the "xql" parameter. For instance, here's
a weather station returning just the humidity:
You can also set the "strip_tags" parameter to any non-zero
value to return a plain text document with each value on its own
line, without any xml tags, and in document order. For example:
||Jan 8, 2012
Moved configuration settings to a separate untracked configuration file. Added a sample config file. Removed database credentials from older versions. Dumped database. Initialized repo and added project to github.com.
||Nov 04, 2007
Fixed problem where many stations were reporting incorrect status of off duty kenwood.
Problem due to aprsworld storing many packets with a packet id of 0. Changed the key between
tables to use combination of callsign and packet time. (Reported by John Will W5EJ and
Tony Komljanec VE3TK)
||May 22, 2005
Added dewpoint in Celsius and Fahrenheit.
||May 13, 2005
Fixed rounding problems with kph to mph/knots
conversions. Fixed null vs. zero problem with speed and
wind speed. (reported by Dave Anderson K0RX)
||May 04, 2005
||Added the ability to get multiple calls in one URL. (Requested
by Jon Josué K9JPJ)
||Apr 18, 2005
||Changed strip_tags to display a blank line in place of empty
tags. (Requested by Rick Voris)
||Apr 16, 2005
||Added XQL interface. Added strip_tags parameter. (Requested
by Tony Komljanec VE3TK)
||Apr 04, 2004
||Changed code to work with aprsworld instead of findU after
the findU backup server went down.
||Feb 26, 2004
|| Created findU-to-XML interface.
| To Do
- Scripts for getting multiple position and weather reports,
like the findU-to-XML Interface.
- Still need to break out some elements into other unit conversions.
- Scripts for querying messages.
- Scripts for finding stations near other stations, zip codes,
- Possibly a DTD or other schema. Although, maybe not.