]> git.mxchange.org Git - flightgear.git/commit
Expose FlightHistory as a http service
authorTorsten Dreyer <torsten@ŧ3r.de>
Mon, 23 Feb 2015 15:33:20 +0000 (16:33 +0100)
committerTorsten Dreyer <torsten@ŧ3r.de>
Mon, 23 Feb 2015 15:33:58 +0000 (16:33 +0100)
commitcc6178a9f350cabd601befb852b6d06012691116
treefa7b30adc3183e0faf3cd22e2cb8e81c530fc50e
parent68c9adb4891d50db383c8629f7c9882cb21b28b1
Expose FlightHistory as a http service

usage:
GET http://localhost:8080/flighthistory/track.json
retrieves track as JSON data
{
  flightHistory: [
    {
      latitude: (number),
      longitude: (number),
      altitude: (number)
    }
  ]
}

GET http://localhost:8080/flighthistory/track.kml
retrieves track as KML path
optional request parameter:
LineColor=(hex encoded rgba color)
LineWidth=(line width in pixel)
PolyColor=(hex encoded rgba color)
interval=(number of seconds to auto-refresh)
src/Network/http/CMakeLists.txt
src/Network/http/FlightHistoryUriHandler.cxx [new file with mode: 0644]
src/Network/http/FlightHistoryUriHandler.hxx [new file with mode: 0644]
src/Network/http/PropertyUriHandler.cxx
src/Network/http/SimpleDOM.cxx [new file with mode: 0644]
src/Network/http/SimpleDOM.hxx [new file with mode: 0644]
src/Network/http/httpd.cxx