AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: Improved Routing Information  (Read 252709 times)

0 Members and 3 Guests are viewing this topic.

Chris11

  • Hero Member
  • *****
  • Posts: 1052
Re: Improved Routing Information
« Reply #270 on: October 01, 2010, 09:54:18 AM »
Need a username?

If you want sophistication like checking for duplicates, etc, etc then it is a bigger project. I was assuming it would be a data collection facility and that the manipulation and purification would be done in excel  or something like that
« Last Edit: October 01, 2010, 09:56:42 AM by Chris11 »

DaveReid

  • Hero Member
  • *****
  • Posts: 1815
    • Heathrow last 100 ADS-B arrivals
Re: Improved Routing Information
« Reply #271 on: October 01, 2010, 10:04:55 AM »
Programmers always shudder when they hear the words data and Excel in the same sentence  :-)
This post has been scanned for any traces of negativity, bias, sarcasm and general anti-social behaviour

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Improved Routing Information
« Reply #272 on: October 01, 2010, 10:13:59 AM »
Can I suggest TWO separate tables, one for takeoffs, and one for landings.  Each containing three fields:
CREATE TABLE TakeOff (
  ICAO      varchar(4),
  FlightID  varchar(8),
  DateTime  varchar(50)
);

CREATE TABLE Landing (
  ICAO      varchar(4),
  FlightID  varchar(8),
  DateTime  varchar(50)
);

Then, a simple query would allow you to match takeoffs and landings with the same FlightID:
SELECT
  TakeOff.FlightID,
  TakeOff.ICAO AS TakeOffAirport,
  Landing.ICAO AS LandingAirport,
  TakeOff.DateTime AS TakeOffTime,
  Landing.DateTime AS LandingTime
FROM
 TakeOff
 INNER JOIN Landing ON (TakeOff.FlightID=Landing.FlightID)
WHERE
  (TakeOff.DateTime < Landing.DateTime)
« Last Edit: October 01, 2010, 11:04:35 AM by tarbat »

DaveReid

  • Hero Member
  • *****
  • Posts: 1815
    • Heathrow last 100 ADS-B arrivals
Re: Improved Routing Information
« Reply #273 on: October 01, 2010, 10:25:08 AM »
Surely that SQL would only return multi-leg flights which have a takeoff and landing at the same airport with the same FlightID ?
This post has been scanned for any traces of negativity, bias, sarcasm and general anti-social behaviour

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Improved Routing Information
« Reply #274 on: October 01, 2010, 11:05:20 AM »
Surely that SQL would only return multi-leg flights which have a takeoff and landing at the same airport with the same FlightID ?

Corrected and refined to check that take-off date/time is earlier than landing date/time.  Now, if someone could host the database, we could test this out.  Although it won't cope with multi-leg flights.

If anyone wants me to test this out, FOR TESTING ONLY, post you takeoffs and landings in the following format:

TAKEOFFS
"AAAA","FFFFFFFF","YYYY/MM/DD HH:MM:SS"
eg:
"EGLL","EZY153","2010/10/01 10:22:12"

LANDINGS
"AAAA","FFFFFFFF","YYYY/MM/DD HH:MM:SS"
eg:
"EGPE","EZY153","2010/10/01 11:54:35"
« Last Edit: October 01, 2010, 11:10:10 AM by tarbat »

DaveReid

  • Hero Member
  • *****
  • Posts: 1815
    • Heathrow last 100 ADS-B arrivals
Re: Improved Routing Information
« Reply #275 on: October 01, 2010, 11:11:01 AM »
Corrected and refined to check that take-off date/time is earlier than landing date/time.  Now, if someone could host the database, we could test this out.  Although it won't cope with multi-leg flights.

Well my offer re hosting stands.

By the way, you don't need 2 separate tables, you can run a corresponding SQL query on a single table, regardless of whether rows have origin, or destination, or both, populated.
This post has been scanned for any traces of negativity, bias, sarcasm and general anti-social behaviour

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Improved Routing Information
« Reply #276 on: October 01, 2010, 11:14:13 AM »
By the way, you don't need 2 separate tables, you can run a corresponding SQL query on a single table, regardless of whether rows have origin, or destination, or both, populated.

Okay, I stand corrected.  I can't see how to do that in SQLiteMaestro, so I'll give up now and leave it to more expert people.

DaveReid

  • Hero Member
  • *****
  • Posts: 1815
    • Heathrow last 100 ADS-B arrivals
Re: Improved Routing Information
« Reply #277 on: October 01, 2010, 11:17:36 AM »
Programmers don't like the number 2 - in fact they only recognise three numbers:

0
1
lots

:-)
This post has been scanned for any traces of negativity, bias, sarcasm and general anti-social behaviour

bratters

  • Hero Member
  • *****
  • Posts: 935
Re: Improved Routing Information
« Reply #278 on: October 01, 2010, 11:33:42 AM »
Breaking in for a moment  techies, I've just had 30 mins monitoring EGNX, working also in conjunction with the online EMA departure and arrivals board.

RYR 7VG landed - from Alicante according to board so should be OK to write route.

RYR17ML took off - for Bergamo according to board so should be OK to write route (Airnav has routing EGNX-LEGE - should be LIME)

TCX 91WC took off - for Teneriffe according to board - should be OK to write route.

Nothing sensational but it shows that in 30 minutes one man can crack 3 routes without much effort. So class, how many routes can 20 men working for a few days crack?

But just what do we do with the info?


flybhx

  • Guest
Re: Improved Routing Information
« Reply #279 on: October 01, 2010, 12:28:01 PM »
can I suggest holding fire on the project till the end of the month when the timetable change is complete

DaveReid

  • Hero Member
  • *****
  • Posts: 1815
    • Heathrow last 100 ADS-B arrivals
Re: Improved Routing Information
« Reply #280 on: October 01, 2010, 12:34:55 PM »
This post has been scanned for any traces of negativity, bias, sarcasm and general anti-social behaviour

tarbat

  • ShipTrax Beta Testers
  • Hero Member
  • *
  • Posts: 4219
    • Radarbox at Easter Ross
Re: Improved Routing Information
« Reply #281 on: October 01, 2010, 01:08:51 PM »
By the way, you don't need 2 separate tables, you can run a corresponding SQL query on a single table, regardless of whether rows have origin, or destination, or both, populated.

Dave, can you give some pointers on how to achieve that - I can't see how.

In the meantime, my "2-table" database seems to work well, except for multi-leg flights.  I can input a list of departures from several airports into one table, and a list of arrivals from those airports into the other table, and the query automatically matches arrivals to departures and generates routes.  Just need some real data from other airports to test.

ALthough it also shows up flights that appear take-off and land at the same airport:
FlightID   T/O   LND   TakeOffTime            LandingTime
 CWL64   EGPE   EGPE   2010/09/29 09:58:29   2010/09/29 15:27:55
 CWL73   EGPE   EGPE   2010/09/29 10:07:00   2010/09/29 15:44:12
LOG779   EGPE   EGPE   2010/09/27 19:53:38   2010/09/29 16:47:40
« Last Edit: October 01, 2010, 01:11:16 PM by tarbat »

bratters

  • Hero Member
  • *****
  • Posts: 935
Re: Improved Routing Information
« Reply #282 on: October 01, 2010, 01:11:04 PM »
But just what do we do with the info?

Have a play with www.flightroutelookup.com/FlightRoute/FlightRouteUpdate.asp.

Feedback welcomed.

Right Dave - 2 points - is it case sensitive and what is the date format? Looks dead simple for confirmed completed routes as opposed to half routes.

AirNav Support

  • AirNav Systems
  • Hero Member
  • *****
  • Posts: 4127
Re: Improved Routing Information
« Reply #283 on: October 01, 2010, 01:17:58 PM »
DaveReid,

If your promoting your site again to help, then can you please confirm that you will let us hook into it for free as you do for other software?

If not please make that obvious to everyone. The last think we want is RadarBox users involved in something that they think will help there system when actually it won't at all.
Contact Customer/Technical support via:
http://www.airnavsystems.com/contact.html
[email protected]

DaveReid

  • Hero Member
  • *****
  • Posts: 1815
    • Heathrow last 100 ADS-B arrivals
Re: Improved Routing Information
« Reply #284 on: October 01, 2010, 01:20:40 PM »
Right Dave - 2 points - is it case sensitive and what is the date format? Looks dead simple for confirmed completed routes as opposed to half routes.

No, it's not case-sensitive (anything you enter in lower case is automatically uppercased before saving).

Date format is DD/MM/YYYY.

Not sure what you mean about only simple for completed routes - for a half route just leave the origin or destination blank, as appropriate.
This post has been scanned for any traces of negativity, bias, sarcasm and general anti-social behaviour