Two questions:
When checking a route to see if it uses a 380 or 747, should we split the string to see if 747 is contained in the string OR simply make sure the string is just 380 or 747?
Is KLM Royal Dutch Airlines the same as KLM?
KLM is listed in the SkyTeam air alliance. All other airlines are listed by their full name. It seems to me that air alliance entry for KLM should be KLM Royal Dutch Airlines.
See the example below for KLM Royal Dutch Airlines.
// db.air_routes.findOne({'airline.name': 'KLM Royal Dutch Airlines'})
{
"_id" : ObjectId("56e9b39c732b6122f87887d4"),
"airline" : {
"id" : 3090,
"name" : "KLM Royal Dutch Airlines",
"alias" : "KL",
"iata" : "KLM"
},
"src_airport" : "AMS",
"dst_airport" : "LYS",
"codeshare" : "Y",
"stops" : 0,
"airplane" : "EMJ F70"
}