Commit c8aab0f5 authored by Volker Krause's avatar Volker Krause
Browse files

Update airport database and adjust tests accordingly

Unbelievable, but this indeed adds BER as a valid airport now.
parent 77624b71
......@@ -170,7 +170,6 @@ private Q_SLOTS:
// alternative transliterations
QCOMPARE(KnowledgeDb::iataCodeFromName(QStringLiteral("Duesseldorf International")), KnowledgeDb::IataCode{"DUS"});
QCOMPARE(KnowledgeDb::iataCodeFromName(QStringLiteral("Berlin Schoenefeld")), KnowledgeDb::IataCode{"SXF"});
QCOMPARE(KnowledgeDb::iataCodeFromName(QStringLiteral("Zuerich")), KnowledgeDb::IataCode{"ZRH"});
// IATA code contained in name
......@@ -224,6 +223,7 @@ private Q_SLOTS:
QTest::newRow("AGP") << s("AGP") << 36.67608f << -4.49095f << 100;
QTest::newRow("AMS") << s("AMS") << 52.3095230f << 4.7621813f << 50;
QTest::newRow("ARN") << s("ARN") << 59.64927f << 17.92956f << 50;
QTest::newRow("BER") << s("BER") << 52.36444f << 13.50964f << 150;
QTest::newRow("BLR") << s("BLR") << 13.20023f << 77.70972f << 150;
QTest::newRow("BRE") << s("BRE") << 53.05266f << 8.78692f << 50;
QTest::newRow("BRU") << s("BRU") << 50.8985255f << 4.4830282f << 50;
......@@ -247,7 +247,7 @@ private Q_SLOTS:
QTest::newRow("GVA") << s("GVA") << 46.23020f << 6.10828f << 200;
QTest::newRow("HAJ") << s("HAJ") << 52.45849f << 9.69898f << 50;
QTest::newRow("HAM") << s("HAM") << 53.63214f << 10.00648f << 100;
QTest::newRow("HEL") << s("HEL") << 60.31619f << 24.96914f << 50;
QTest::newRow("HEL") << s("HEL") << 60.31619f << 24.96914f << 100;
QTest::newRow("HFS") << s("HFS") << 60.02591f << 13.58202f << 50;
QTest::newRow("HKG") << s("HKG") << 22.31569f << 113.93605f << 100;
QTest::newRow("KEF") << s("KEF") << 63.99663f << -22.62355f << 200;
......@@ -273,7 +273,6 @@ private Q_SLOTS:
QTest::newRow("SHA") << s("SHA") << 31.19624f << 121.32377f << 200;
QTest::newRow("STR") << s("STR") << 48.69052f << 9.19302f << 50;
QTest::newRow("SXB") << s("SXB") << 48.54444f << 7.62783f << 50;
QTest::newRow("SXF") << s("SXF") << 52.38856f << 13.51809f << 100;
QTest::newRow("TLL") << s("TLL") << 59.41685f << 24.79899f << 150;
QTest::newRow("TLS") << s("TLS") << 43.63146f << 1.37364f << 100;
QTest::newRow("TPE") << s("TPE") << 25.07719f << 121.23250f << 350; // still ok-ish
......
......@@ -10,30 +10,37 @@ LAST-MODIFIED:20171227T111649Z
DESCRIPTION:Boarding time: 2:25 PM\nDeparture gate: 16\nJOHN DOE\nBoarding group: C\nSeat: 16E\nBooking reference: XXX007
SUMMARY:Flight AB 8075 from HEL to TXL
LOCATION:Helsinki
GEO:60.316399;24.969101
GEO:60.315800;24.968599
DTSTART;TZID=Europe/Helsinki:20170920T150500
DTEND;TZID=Europe/Berlin:20170920T160000
TRANSP:OPAQUE
X-KDE-KITINERARY-RESERVATION:[{"@context":"http://schema.org"\,"@type":
"FlightReservation"\,"airplaneSeat":"16E"\,"boardingGroup":
"C"\,"potentialAction":[{"@type":"DownloadAction"\,"target":
"https://m.airberlin.com/ckbc/pnr/XXX007/ln/DOE/cpid/94482631/fn/JOHN"}\,{"@type":"UpdateAction"\,"target":"https://www.airberlin.com/de-DE/cockpit/index/index/bookingNo/XXX007/lastname/DOE/submit/1"}]\,"reservationFor":{"@type":"Flight"\,"airline":{"@type":
"C"\,"potentialAction":[{"@type":"DownloadAction"\,"target":"https:
//m.airberlin.com/ckbc/pnr/XXX007/ln/DOE/cpid/94482631/fn/JOHN"}\,{"@type"
:"UpdateAction"\,"target":"https:
//www.airberlin.com/de-DE/cockpit/index/index/bookingNo/XXX007/lastname/DO
E/submit/1"}]\,"reservationFor":{"@type":"Flight"\,"airline":{"@type":
"Airline"\,"iataCode":"AB"\,"name":"airberlin"}\,"arrivalAirport":
{"@type":"Airport"\,"address":{"@type":"PostalAddress"\,"addressCountry":
"DE"}\,"geo":{"@type":"GeoCoordinates"\,"latitude":
52.55390167236328\,"longitude":13.29319953918457}\,"iataCode":
52.55379867553711\,"longitude":13.29319953918457}\,"iataCode":
"TXL"\,"name":"Berlin (Tegel)"}\,"arrivalTime":{"@type":
"QDateTime"\,"@value":"2017-09-20T16:00:00+02:00"\,"timezone":
"Europe/Berlin"}\,"boardingTime":{"@type":"QDateTime"\,"@value":
"2017-09-20T14:25:00+03:00"\,"timezone":
"Europe/Helsinki"}\,"departureAirport":{"@type":"Airport"\,"address":
{"@type":"PostalAddress"\,"addressCountry":"FI"}\,"geo":{"@type":
"GeoCoordinates"\,"latitude":60.31639862060547\,"longitude":
24.969100952148438}\,"iataCode":"HEL"\,"name":"Helsinki"}\,"departureDay":
"GeoCoordinates"\,"latitude":60.315799713134766\,"longitude":
24.968599319458008}\,"iataCode":"HEL"\,"name":"Helsinki"}\,"departureDay":
"2017-09-20"\,"departureGate":"16"\,"departureTime":{"@type":
"QDateTime"\,"@value":"2017-09-20T15:05:00+03:00"\,"timezone":
"Europe/Helsinki"}\,"flightNumber":"8075"}\,"reservationNumber":
"XXX007"\,"reservationStatus":"http://schema.org/ReservationConfirmed","reservedTicket":{"@type":"Ticket"\,"ticketToken":"https://checkin.airberlin.com/app/barcode.fly?pnr=XXX007&ln=DOE&cpid=12345678&fn=JOHN"}\,"underName":{"@type":"Person"\,"name":"JOHN DOE"}}]
"XXX007"\,"reservationStatus":"http:
//schema.org/ReservationConfirmed"\,"reservedTicket":{"@type":
"Ticket"\,"ticketToken":"https:
//checkin.airberlin.com/app/barcode.fly?pnr=XXX007&ln=DOE&cpid=12345678&fn
=JOHN"}\,"underName":{"@type":"Person"\,"name":"JOHN DOE"}}]
BEGIN:VALARM
DESCRIPTION:Boarding for flight AB 8075 at gate 16
ACTION:DISPLAY
......
......@@ -36,7 +36,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -182,7 +182,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -36,7 +36,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -71,7 +71,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -36,7 +36,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -71,7 +71,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -36,7 +36,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -75,7 +75,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -36,7 +36,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -94,7 +94,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -365,7 +365,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -423,7 +423,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -37,7 +37,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -182,7 +182,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -35,7 +35,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......@@ -69,7 +69,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -39,7 +39,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -20,8 +20,8 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"longitude": 13.29319953918457
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
"name": "Berlin-Tegel"
......
......@@ -20,7 +20,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
......@@ -22,7 +22,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL"
......
......@@ -17,7 +17,7 @@
"geo": {
"@type": "GeoCoordinates",
"latitude": 55.629600524902344,
"longitude": 12.649299621582031
"longitude": 12.649399757385254
},
"iataCode": "CPH",
"name": "COPENHAGEN DK KASTRUP"
......
......@@ -16,7 +16,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 13.200400352478027,
"latitude": 13.200499534606934,
"longitude": 77.71070098876953
},
"iataCode": "BLR"
......
......@@ -19,7 +19,7 @@
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 52.55390167236328,
"latitude": 52.55379867553711,
"longitude": 13.29319953918457
},
"iataCode": "TXL",
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment