Commit 36a6edf5 authored by Volker Krause's avatar Volker Krause

Update airport database from Wikidata

parent 86da9772
...@@ -9,3 +9,4 @@ heaptrack.* ...@@ -9,3 +9,4 @@ heaptrack.*
*.qmlc *.qmlc
perf.data* perf.data*
/build*/ /build*/
*.fail
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
}, },
"geo": { "geo": {
"@type": "GeoCoordinates", "@type": "GeoCoordinates",
"latitude": 56.92359924316406, "latitude": 56.920799255371094,
"longitude": 23.971099853515625 "longitude": 23.970800399780273
}, },
"iataCode": "RIX", "iataCode": "RIX",
"name": "Riga" "name": "Riga"
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
}, },
"geo": { "geo": {
"@type": "GeoCoordinates", "@type": "GeoCoordinates",
"latitude": 56.92359924316406, "latitude": 56.920799255371094,
"longitude": 23.971099853515625 "longitude": 23.970800399780273
}, },
"iataCode": "RIX", "iataCode": "RIX",
"name": "Riga" "name": "Riga"
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
}, },
"geo": { "geo": {
"@type": "GeoCoordinates", "@type": "GeoCoordinates",
"latitude": 56.92359924316406, "latitude": 56.920799255371094,
"longitude": 23.971099853515625 "longitude": 23.970800399780273
}, },
"iataCode": "RIX" "iataCode": "RIX"
}, },
......
...@@ -257,6 +257,8 @@ void KItinerary::Generator::AirportDbGenerator::indexNames() ...@@ -257,6 +257,8 @@ void KItinerary::Generator::AirportDbGenerator::indexNames()
for (auto it = m_labelMap.begin(); it != m_labelMap.end();) { for (auto it = m_labelMap.begin(); it != m_labelMap.end();) {
std::sort(it.value().begin(), it.value().end()); std::sort(it.value().begin(), it.value().end());
// TODO revisit this when we have experience with the higher level IATA code disambiguation in FlightPostProcessor
#if 0
if (it.value().size() == 2) { // TODO generalize this from 2 to N if (it.value().size() == 2) { // TODO generalize this from 2 to N
const auto lhsAirport = m_airportMap.value(m_iataMap.value(it.value().at(0))); const auto lhsAirport = m_airportMap.value(m_iataMap.value(it.value().at(0)));
const auto rhsAirport = m_airportMap.value(m_iataMap.value(it.value().at(1))); const auto rhsAirport = m_airportMap.value(m_iataMap.value(it.value().at(1)));
...@@ -280,6 +282,7 @@ void KItinerary::Generator::AirportDbGenerator::indexNames() ...@@ -280,6 +282,7 @@ void KItinerary::Generator::AirportDbGenerator::indexNames()
//qDebug() << "Overlapping fragments:" << lhsAirport.fragments << rhsAirport.fragments; //qDebug() << "Overlapping fragments:" << lhsAirport.fragments << rhsAirport.fragments;
} }
} }
#endif
++it; ++it;
} }
......
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