Closed TwinFan closed 4 years ago
Documentation for request/reply is rather thin. The following I consolidated from various sources:
A valid request is as stated here:
http://live.glidernet.org/lxml.php?a=1&b=51.7568&c=47.3490&d=15.0239&e=1.0054&z=2
The Python source code of an alternative OGN backend (the server answering the requests) gives away details of the request and reply format.
Request Format
show_offline = request.args.get('a', 0, type=int) == 1
lat_max = request.args.get('b', 90, type=int)
lat_min = request.args.get('c', -90, type=int)
lon_max = request.args.get('d', 180, type=int)
lon_min = request.args.get('e', -180, type=int)
And by trial and error I assume that z
is a timezone to which the timestamps are to be converted. As LiveTraffic prefers ZULU/GMT anyway we just leave it out.
Reply Format
lines.append('<m a="{0:.7f},{1:.7f},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13}"/>'
.format(aircraft_beacon.location.latitude,
aircraft_beacon.location.longitude,
competition,
registration,
aircraft_beacon.altitude,
utc_to_local(aircraft_beacon.timestamp).strftime("%H:%M:%S"),
elapsed_seconds,
int(aircraft_beacon.track),
int(aircraft_beacon.ground_speed),
int(aircraft_beacon.climb_rate*10)/10,
aircraft_beacon.aircraft_type,
aircraft_beacon.receiver_name,
address,
code))
Aircraft type is likely the FLARM type, field ACFT
as in the FLARM specs.
Sent a mail to contact [at] glidernet.org
, asking permission to use the data.
Current Situation / Problem Limited GA, no glider coverage in LiveTraffic. GliderNet is not supported as a tracking data channel.
Suggested Solution Support GliderNet, an open solution.
Benefits A little increase in GA traffic, adding glide traffic. Would make LiveTraffic interesting also for sailplane / glider sim pilots.
Additional context While there are high-level APIs available they require pretty fat libraries to include, which I'm reluctant to do. However, there seem to be just standard request/reply possibilities, which would fit into the LiveTraffic design.
E.g. http://live.glidernet.org/lxml.php?a=1&b=51.7568&c=47.3490&d=15.0239&e=1.0054&z=2 returns something like
Todos