';} else if( dlayWhich=='salida' && flightStatusTxt=="Landed" && tArrivalGateDelayMinutes>30) {classDiv="redtxt";statusText =''+flightStatusTxt+' -Late';textReturn=flightStatusTxt+' - Retrasado '+flightDuration(tArrivalGateDelayMinutes, 'yes')+'last update: '+last update+'';returnVal = textState+'[-]
'+TextBack+'
';} else if( dlayWhich=='arrival' && tArrivalGateDelayMinutes>30) {classDiv="redtxt";statusText =''+flightStatusTxt+' -Late';textReturn=flightStatusTxt+' - Retrasado '+flightDuration(tArrivalGateDelayMinutes, 'yes')+'last update: '+last update+'';returnVal = textState+'[-]
'+TextBack+'
';} else { // Currently during 30 minutes gapeclassDiv="greenTxt";statusText=''+flightStatusTxt+' -Punctual';textReturn=flightStatusTxt+' - A tiempolast update: '+last update+'';returnVal = textState+'[-]
'+TextBack+'
';}} /*else if(scheduledeDateRes==actualDateRes) {// On- TimeclassDiv="hide";flightStatusTxt = "Landed - Pünktlich";statusText ='landed on time';returnVal = textState+'[-]
';}*/ else {// Early -- On- TimeclassDiv="greenTxt";//flightStatusTxt = "Pünktlich";statusText =''+flightStatusTxt+' -Punctual';textReturn=flightStatusTxt+' - A tiempolast update: '+last update+'';returnVal = textState+'[-]
'+TextBack+'
';}return returnVal;}function statusair(tDelays, tDepartureGateDelayMinutes, tArrivalGateDelayMinutes) {var returnValue='';if(tDelays!=null){if(parseInt(tDepartureGateDelayMinutes)>30){returnValue ='Delayed' + flightDuration(tDepartureGateDelayMinutes ) , 'yes');}} else {return "--";}}function lodingHide() {setTimeout(function(){$("#loadingSearch").hide(); // Hide Loading Div}, 1000 ) ;}Funktion recordNotFound() {/*$("#loadingSearch").show().html("Recording not found"); // load DivhideAllResultDivs() // hide all results DivssetTimeout(function(){//$("#tracker-content").fadeIn( "slow" );$("#loadingSearch").html( " ");$("#loadingSearch").hide(); // Hide loading div}, 2000); */hideAllResultDivs() // Hide all result divs$("#erroreMsg").html( "No se encontró ningún resultado".).show(); }function flightDuration(timeVal, statusTime) {var returnVal='';if(timeVal!=null && timeVal!=''){var vatTime = timeVal;var timeHour = timeVal / 60;var timeMins = timeVal % 60;timeHour = timeHour.toString().split('.');timeMins = timeMins.toString().split('.');if(statusTime=='yes') {if (parseInt(timeHour)!=0){returnVal+= timeHour[0] + 'Hour';}if(parseInt(timeMins)!=0){returnVal+= timeMins[0] + 'Minutes';}} else { returnVal = 'Zeitdauer: ';if(parseInt(timeHour)!=0){returnVal+= timeHour[0] + ' Hrs ';}if(parseInt(timeMins)!=0){returnVal+= timeMins[0] + 'Mins' ;}}} else {returnVal='--';}return returnVal;}function imgExist(image) { image.style.display = 'none';}function jsonValidate(val) {var returnVal=""; if(val ===null || val=='null' || null==' '){ returnVal='--'; } else { returnVal=val;}return returnVal;}function codeShareVal(searchCodeShare){var returnValue=' ';$.each(searchCodeShare.CodeShare, function(j) {if(searchCodeShare.CodeShar e.length != 0 && buscar CodeShare.CodeShare[j].opratedFlightNo!=null){var opratedBy='';if(searchCodeShare.CarrierFsCode==searchCodeShare.CodeShare[j].carrierFsCode){/*opratedBy ='Operado por '+'('+searchCodeShare.CarrierFsCode+') '+searchCodeShare.CarrierName+' '+searchCodeShare.CodeShare[j].opratedFlightNo+'';*/optedBy='';} sonst {opratedBy ='Operado por '+'('+searchCodeShare.CodeShare[j].operatedFsCode+') '+searchCodeShare.CodeShare[j].operatedName+' '+searchCodeShare.CodeShare[j].operatedFlightNo+'';}valorRetorno +='';}}); // end of loop CodeSharereturn returnValue;}Function codeShareValSingle(codeShareNode, mainResultNode){var returnValueSngl='';var opratedBy='';if(mainResultNode.CarrierFsCode==codeShareNode.carrierFsCode){/*opratedBy=''Operado por '+'('+record.RouteStatus[i].CarrierFsCode+') '+record.RouteStatus[i].CarrierName+' '+record.RouteStatus[i].CodeShare[j].opratedFlightNo+'';*/optedBy='';} sonst {opratedBy ='Operado por '+'('+codeShareNode.opratedFsCode+') '+codeShareNode.opratedName+' '+codeShareNode.opratedFlightNo+'';}returnValueSngl = '';return returnValueSngl;}/* Búsqueda por salida de vuelo */function displayFlightBox(record) {if (record != "") {//console.log(record);var responsArrLenght = record. FlightStatus .length;var recArr = record.FlightStatus;//alert(responsArrLenght);if (responsArrLenght != 0) {// End Loding//$("#loadingSearch").hide(); // Cargando DivlodingHide();// End Lodingvar text1 = "";var testCode='';$.each(record.FlightStatus, function(i) {// Partida startvar salidaDateDetails = timeFormatDate(record.FlightStatus[i]. ScheduledGateDepartureDate);var ActualGateDepartureDate = timeFormatDate(record.FlightStatus[i].ActualGateDepartureDate,'checkTime', record.FlightStatus[i].Delays, 'departure', record.FlightStatus[i] );// Fin de salida// Llegada startvar ScheduledGateArrivalDateF = timeFormatDate(record.FlightStatus[i].ScheduledGateArrivalDate);var CalculadGateArrivalDateF = timeFormatDate(record.FlightStatus[i].ActualGateLarrivalDate,'checkTime', record.FlightStatus[i].Delays, 'arrival', record.FlightStatus[ i ] );// Llegada Endvar flightStatusTxt ='';if(record.FlightStatus[i].Delays!=null){var statusTextReturn = statusDes(record.FlightStatus[i].Status, i, record.FlightStatus[i] .UpdatedAt, record.FlightStatus[i].Delays, record.FlightStatus[i].Delays.DepartureGateDelayMinutes, record.FlightStatus[i].Delays.Arrival GateDelayMinutes, 'salida', record.UpdatedDate );} else {var statusTextReturn = statusDes(record.FlightStatus[i].Status, i, record.FlightStatus[i].UpdatedAt, record.FlightStatus[i].Delays, ' ' , '', '', record.UpdatedDate);}statusTextReturn = statusTextReturn.split('[-]');if(statusTextReturn[0]!='null' && statusTextReturn[0]!='--') { flightStatTxt = statusTextReturn[1];}var flightDurationT ='';if(record.FlightStatus[i].FlightDuration!=null)flightDurationT=record.FlightStatus[i].FlightDuration.ScheduledBlockMinutes;//var statusTextReturn = statusair(record . FlightStatus[i].Delays, record.FlightStatus[i].DepartureGateDelayMinutes, record.FlightStatus[i].ArrivalGateDelayMinutes);//flightStatTxt = statusTextReturn[1];var codeShare = '';codeShare = record.FlightStatus[i]. CodeShare;if(codeShare!=null){codeShare=codeShareVal(record.FlightStatus[i]);} else {codeShare = '';}testCode += ' '+/*' Flugnummer: '+ record.FlightStatus[i].FlightNumber +' '+flightStatTxt+' '+*/' '+codeshare+flightStatTxt+' '+' '+' '+' '+' '+ record.FlightStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.FlightStatus[i].DepartureCityName)+', '+jsonValidate(record.FlightStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails+' '+' Puerta'+jsonValidate(record.FlightStatus[i].GateExit)+' '+' Terminal'+jsonValidate(log.FlightStatus[i].Departure Terminal)+' '+' '+' '+' '+ActualGateDepartureDate+' '+' '+' '+' '+' '+ registro.FlightStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.FlightStatus[i].ArrivalCityName)+', '+jsonValidate(record.FlightStatus[i].LlegadaCountryCode)+' '+' '+' Scheduled arrival '+ScheduledGateArrivalDateF+' '+' Puerta'+jsonValidate(registro.FlightStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.FlightStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF+' '+' '+' '+' '+' '+' '+flight duration(flight durationT)+' '+' '+' '+' '+codeshareContent+flightStatTxt+' '+' '+' '+' '+' '+ registro.RouteStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.RouteStatus[i].DepartureCityName)+', '+jsonValidate(record.RouteStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails+' '+' Puerta'+jsonValidate(record.RouteStatus[i].GateExit)+' '+' Terminal'+jsonValidate(registry.RouteStatus[i].Exit Terminal)+' '+' '+' '+' '+ActualGateDepartureDate+' '+' '+' '+' '+' '+ registro.RouteStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.RouteStatus[i].ArrivalCityName)+', '+jsonValidate(record.RouteStatus[i].ArrivalCountryCode)+' '+' '+' Scheduled arrival '+ScheduledGateArrivalDateF+' '+' Puerta'+jsonValidate(registro.RouteStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.RouteStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF+' '+' '+' '+' '+' '+' '+flight duration(flight durationT)+' '+' '+' '+' '+' '+' '+flightStatTxt+' '+' '+' '+' '+' '+ registro.RouteStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.RouteStatus[i].DepartureCityName)+', '+jsonValidate(record.RouteStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails+' '+' Puerta'+jsonValidate(record.RouteStatus[i].GateExit)+' '+' Terminal'+jsonValidate(registry.RouteStatus[i].Exit Terminal)+' '+' '+' '+' '+ActualGateDepartureDate+' '+' '+' '+' '+' '+ registro.RouteStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.RouteStatus[i].ArrivalCityName)+', '+jsonValidate(record.RouteStatus[i].ArrivalCountryCode)+' '+' '+' Scheduled arrival '+ScheduledGateArrivalDateF+' '+' Puerta'+jsonValidate(registro.RouteStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.RouteStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF+' '+' '+' '+' '+' '+' '+flight duration(flight durationT)+' '+' '+' '+' '+' '+' '+' '+codeshareContentDept+airportStatTxt+' '+' '+' '+' '+' '+ record.AirportFlightsDepartureStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.AirportFlightsDepartureStatus[i].DepartureCityName)+', '+jsonValidate(record.AirportFlightsDepartureStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails1+' '+' Puerta'+jsonValidate(registro.AirportFlightsDepartureStatus[i].DepartureGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsDepartureStatus[i].DepartureTerminal)+' '+' '+' '+' '+ActualGateDepartureDate1+' '+' '+' '+' '+' '+ registro.AirportFlightsDepartureStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.AirportFlightsDepartureStatus[i].ArrivalCityName)+', '+jsonValidate(record.AirportFlightsDepartureStatus[i].ArrivalCountryCode)+' '+' '+' Scheduled Arrival '+ScheduledGateArrivalDateF1+' '+' Puerta'+jsonValidate(registro.AirportFlightsDepartureStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsDepartureStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF1+' '+' '+' '+' '+' '+' '+Flight Duration(Flight Duration Apartment)+' '+' '+' '+' '+' '+' '+airportStatTxt+' '+' '+' '+' '+' '+ record.AirportFlightsDepartureStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.AirportFlightsDepartureStatus[i].DepartureCityName)+', '+jsonValidate(record.AirportFlightsDepartureStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails1+' '+' Puerta'+jsonValidate(registro.AirportFlightsDepartureStatus[i].DepartureGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsDepartureStatus[i].DepartureTerminal)+' '+' '+' '+' '+ActualGateDepartureDate1+' '+' '+' '+' '+' '+ registro.AirportFlightsDepartureStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.AirportFlightsDepartureStatus[i].ArrivalCityName)+', '+jsonValidate(record.AirportFlightsDepartureStatus[i].ArrivalCountryCode)+' '+' '+' Scheduled Arrival '+ScheduledGateArrivalDateF1+' '+' Puerta'+jsonValidate(registro.AirportFlightsDepartureStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsDepartureStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF1+' '+' '+' '+' '+' '+' '+Flight Duration(Flight Duration Apartment)+' '+' '+' '+' '+' '+codeshareContentArrival+airportStatTxtArr+' '+' '+' '+' '+' '+ record.AirportFlightsArrivalStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.AirportFlightsArrivalStatus[i].DepartureCityName)+', '+jsonValidate(record.AirportFlightsArrivalStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails+' '+' Puerta'+jsonValidate(registro.AirportFlightsArrivalStatus[i].DepartureGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsArrivalStatus[i].DepartureTerminal)+' '+' '+' '+' '+ActualGateDepartureDate+' '+' '+' '+' '+' '+ registro.AirportFlightsArrivalStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.AirportFlightsArrivalStatus[i].ArrivalCityName)+', '+jsonValidate(record.AirportFlightsArrivalStatus[i].ArrivalCountryCode)+' '+' '+' Scheduled arrival '+ScheduledGateArrivalDateF+' '+' Puerta'+jsonValidate(registro.AirportFlightsArrivalStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsArrivalStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF+' '+' '+' '+' '+' '+' '+flight duration(flight durationTAarrv)+' '+' '+' '+' '+' '+' '+airportStatTxtArr+' '+' '+' '+' '+' '+ record.AirportFlightsArrivalStatus[i].DepartureAirportFsCode +''+jsonValidate(registro.AirportFlightsArrivalStatus[i].DepartureCityName)+', '+jsonValidate(record.AirportFlightsArrivalStatus[i].DepartureCountryCode)+' '+' '+' Planned departure '+departureDateDetails+' '+' Puerta'+jsonValidate(registro.AirportFlightsArrivalStatus[i].DepartureGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsArrivalStatus[i].DepartureTerminal)+' '+' '+' '+' '+ActualGateDepartureDate+' '+' '+' '+' '+' '+ registro.AirportFlightsArrivalStatus[i].ArrivalAirportFsCode +''+jsonValidate(registro.AirportFlightsArrivalStatus[i].ArrivalCityName)+', '+jsonValidate(record.AirportFlightsArrivalStatus[i].ArrivalCountryCode)+' '+' '+' Scheduled arrival '+ScheduledGateArrivalDateF+' '+' Puerta'+jsonValidate(registro.AirportFlightsArrivalStatus[i].ArrivalGate)+' '+' Terminal'+jsonValidate(registro.AirportFlightsArrivalStatus[i].ArrivalTerminal)+' '+' '+' '+' '+EstimatedDateArrivalDoorF+' '+' '+' '+' '+' '+' '+flight duration(flight durationTAarrv)+' '+' '+''+'
'+' '+' '+''+ registro.RouteStatus[i].CodeShare[j].carrierFlightNo +' '+''+Departure time+' '+''+Arrival time+' '+''+stateTextReturn[0]+' '+''+' ';} // end if for length}); // exit any loop release code } else { tableRow +=' '+''+' '+' '+/*''+ registro.RouteStatus[i].CarrierFsCode + registro.RouteStatus[i].FlightNumber +' '+*/''+ registro.RouteStatus[i].FlightNumber +' '+''+Departure time+' '+''+Arrival time+' '+''+stateTextReturn[0]+' '+''+' ';}/* end of split code */}); // end each loopvar testRouteCode='';testRouteCode = ' '+''+''+'
'+' '+''+''+filaTable+''+'airline '+'flight '+'To fit '+'Arrival '+'Condition '+''+' '+' '+''+ record.AirportFlightsDepartureStatus[i].CodeShare[j].carrierFlightNo +' '+'('+record.AirportFlightsDepartureStatus[i].ArrivalAirportFsCode+') '+jsonValidate(record.AirportFlightsDepartureStatus[i].ArrivalCityName)+' '+''+Departure time+' '+''+stateTextReturn[0]+' '+''+' ';} // end if for length}); // exit any shared loop code } else { depTableRow +=' '+''+' '+' '+''+ record.AirportFlightsDepartureStatus[i].FlightNumber +' '+'('+record.AirportFlightsDepartureStatus[i].ArrivalAirportFsCode+') '+jsonValidate(record.AirportFlightsDepartureStatus[i].ArrivalCityName)+' '+''+Departure time+' '+''+stateTextReturn[0]+' '+''+' ';}/* Fin del código compartido */}); // Abschluss des Kreises} // Abschluss Ifif (airFlightArrvlStatusLength > 0) {var AirportFlightsArrivalStatusData = "";var arriboTableRow='';$.each(registro.AirportFlightsArrivalStatus, function(i) {var arriboTiempo = timeFormat(registro.AirportFlightsArrivalStatus[ i].ScheduledGateArrivalDate,'','time');// Inicio de salidavar salidaDateDetails = timeFormatDate(record.AirportFlightsArrivalStatus[i].ScheduledGateDepartureDate);var ActualGateDepartureDate = timeFormatDate(record.AirportFlightsArrivalStatus[i].ActualGateDepartureDate,'checkTime', record .AirportFlightsArrivalStatus[i].Retrasos, 'salida', registro.AirportFlightsArrivalStatus[i] );// Fin de salida// Inicio de lllegadavar ScheduledGateArrivalDateF = timeFormatDate(record.AirportFlightsArrivalStatus[i].ScheduledGateLarrivalDate);var CalculadGateArrivalDateF = timeFormatDate( record.AirportFlightsArrivalStatus [i].ActualGateArrivalDate,'checkTime', record.AirportFlightsArrivalStatus[i].Delays, 'arrival', record.AirportFlightsArri valStatus[i] );// Llegada al Endvar flightDurationTArrv ='';if(record.AirportFlightsArrivalStatus[i].FlightDuration!=null)flightDurationTArrv=record.AirportFlightsArrivalStatus[i].FlightDuration.ScheduledBlockMinutes;/*var statusTextReturnArr = statusDes( record.AirportFlightsArrivalStatus[i].ScheduledGateDepartureDate, record.AirportFlightsArrivalStatus[i].ActualGateDepartureDate, i, record.UpdatedDate);*/if(record.AirportFlightsArrivalStatus[i].Delays!=null){var statusTextReturnArr = statusDes(record.AirportFlightsArrivalStatus [i].Status, i, record.AirportFlightsArrivalStatus[i].UpdatedAt, record.AirportFlightsArrivalStatus[i].Delays, record.AirportFlightsArrivalStatus[i].Delays.DepartureGateDelayMinutes, record.AirportFlightsArrivalStatus[i].Delays.ArrivalGateDelayMinutes, 'arrival ', record.UpdatedDate);} else {var statusTextReturnArr = statusDes(record.AirportFlightsArrivalStatus[i].Status, i, record.AirportFlightsArrivalStatus[i].UpdatedAt, record.AirportFlightsArrivalStatus[i].De legt, '', '', '', record.Up fechaDate );}var StatTxtArr de aeropuerto ='';statusTextReturnArr = StatTextReturnArr.split('[-]');if(statusTextReturnArr[0]!='null' && statusTextReturnArr[0]!='--'){airportStatTxtArr = statusTextReturnArr [1];}/* CodeShareAirArrival = '';codeShareAirArrival = record.AirportFlightsArrivalStatus[i].CodeShare;if(codeShareAirArrival! =null){var codeshareContentArrival='';$.each(record.AirportFlightsArrivalStatus [i].CodeShare, function(j) {if(record.AirportFlightsArrivalStatus[i].CodeShare.length != 0 && record.AirportFlightsArrivalStatus[i] .CodeShare[j].opratedFlightNo!=null){codeshareContentArrival=codeShareValSingle(record .AirportFlightsArrivalStatus[i].CodeShare[j], record.AirportFlightsArrivalStatus[i]);/*var opratedByArrvl='';if(record.AirportFlightsArrivalStatus[ i].CarrierFsCode==record.AirportFlightsArrivalStatus[i].CodeShare[j] .carrierFsCode){//opratedByArrvl ='Operado por '+'('+record.AirportFlightsArrivalStatus[i].CarrierFsCode+') '+record.AirportFlightsArrivalStatus[i].CarrierName+' '+record.AirportFlightsArrivalStatus[i].CodeShare[j].opratedFlightNo+'';optedByArrvl='';} else {opratedByArrvl ='Operado por '+'('+record.AirportFlightsArrivalStatus[i].CodeShare[j].opratedFsCode+') '+record.AirportFlightsArrivalStatus[i].CodeShare[j].opratedName+' '+record.AirportFlightsArrivalStatus[i].CodeShare[ j].optedFlightNo+'';}codeshareContentArrival = '';*/arrivalTableRow +=' '+''+' '+' '+''+ registro.AirportFlightsArrivalStatus[i].CodeShare[j].carrierFlightNo +' '+'('+record.AirportFlightsArrivalStatus[i].DepartureAirportFsCode+') '+jsonValidate(record.AirportFlightsArrivalStatus[i].DepartureCityName)+' '+''+Arrival time+' '+''+stateTextReturnArr[0]+' '+''+' ';} // end if for length}); // exit any loop share code } else { arrivalTableRow +=' '+''+' '+' '+''+ record.AirportFlightsArrivalStatus[i].FlightNumber +' '+'('+record.AirportFlightsArrivalStatus[i].DepartureAirportFsCode+') '+jsonValidate(record.AirportFlightsArrivalStatus[i].DepartureCityName)+' '+''+Arrival time+' '+''+stateTextReturnArr[0]+' '+''+' ';}/* end of split code */}); // end each loop } // end ifvar outputTabContent='';outputTabContent = ' '+''+''+'
';var arrival token content =''; Arrival token content = ''+' '+''+''+filaTablaDep+''+'airline '+'flight '+'determination '+'To fit '+'Condition '+''+''+'
';// show hide divs$("#byRoute").hide();$("#flightRoute").hide();$("#airDepartureTab").html(departureTabContent);$("#airArrivalTab" ).html(arrivalTabContent);$("#byAirport").slideDown( "slow" );// show hide divs Endif(airFlightArrvlStatusLenght==0 && airFlightDepartureStatusLenght==0) {recordNotFound(); // Cuando no se encuentra el registro.$("#tracker-content").hide();} else if(airFlightArrvlStatusLenght!=0 && airFlightDepartureStatusLenght==0) {$("#airDepartureTab").html(''+' '+''+''+filaTablaLlegadas+''+'airline '+'flight '+'determination '+'Arrival '+'Condition '+'
');lodingHide();} else if(airFlightArrvlStatusLenght==0 && airFlightDepartureStatusLenght!=0) {$("#airArrivalTab").html('Records not found for output.
');loadingHide();} else {//$("#loadingSearch").hide(); // Hide Loading DivlodingHide();} // End If} else { recordNotFound(); // If the record is not found. }}/* End of airport search Departures */ // Get flight status $("#searchFlight").click(function() { var airlineCode = $("#airlineNameCode").val() ;var flightNo = $ .trim( $("#flightNo").val());var fAirlineName = $("#airlineName").val();// var dateInput = $("#dateInput1").attr ("selected dates - date") ;var dateInput = $("#dateInput1").val();var airLCd ="";airLCd = flight number.substring(0, 2);airLCd = airLCd.toUpperCase() ;//alert(airLCd );if( airlineCode==airLCd){flightNo = flightNo.substring(2);}//var dCode = decodeDate(dateInput);var dCode = dateInput;//dCode = "7-4- 2015"; // For Today Only if ( validationSrch()) { // Get departure status searchUrl = "//www.cheapoair.com/fapi/contentapi/v1/FlightService/GetFlightDepartureStatus/mweb/" + airlineCode.toUpperCase() + "/" + flightNo + "/" + dCode + "/9d3b8dab-2792-4e4d-9afd-fcd1d3eb25c8";// start loding$("#loadingSearch").html("Processing...").show(); // loading div//$("#tracker-content").hide(); /* hide default text on page load */// stop loading/* check if you can log in should or should not */ var userNameInfo = GetCookie('X-User');var SessionToken = GetCookie('X-SessionToken');console.log(SessionToken);if(SessionToken!=null){var getResponseDeparture = ""; getResponseDeparture = $ .ajaxCall (searchUrl);if(getResponseDeparture!=null){$("#tracker-content").hide(); /* Hide default text on page load *///$('#ajaxDiv') .html ( JSON.stringify(getResponseDeparture, null, "\t"));displayFlightBox(getResponseDeparture);} else {recordNotFound(); // If the record is not found.}} else {$("#loadingSearch") .html( "").hide(); // load Div$('#socialSignIn').show();hideAllResultDivs() // hide all results Divsvar urlLink = window.location.href;urlLink = urlLink. split(' ?' );beforeLoginUrl = urlLink[0] + "?preview=1&searchBy=flight&airlineCode=" + airlineCode + "&flightNo=" + flight No + "&dCode= " + dCode + "&fAirlineName="+fAirlineName;//console.log(beforeLoginUrl);}/* check if you are logging in or not logging out */ } }); // exit - get departure status // search route start $("#searchRoute").click(function() { var airportDepartures = $.trim($("#airportDepartures").val()) ; var airportDepartures = $ .trim($("#deprtAirportHiddn").val());var airportDeparturesCode = airportDepartures.split("|");//alert(airportDeparturesCode[0]); var airportArrivalsName = $.trim( $(" #AirportArrivals ").val()); varAirportArrivals = $.trim($("#AirportArrivalsCode").val());varAirportArrivalsCode = AirportArrivals.split("|");//alert(AirportArrivalsCode [0] ); // var dateRoute = $("#dateRoute").val();// var dateRoute = $("#dateRoute").attr("data-s selected-date"); var dateRoute = $ ("# dateRoute1" ) .val();//dateRoute = decodeDate(dateRoute);// dateRoute = "7-4-2015"; // Just for today if (validationRoute()) { // start Loding$( "#loadingSearch") . html("Processing...").show(); // Loading Div//$("#tracker-content").hide(); /* Hide default text on page load */// End LodingsearchUrl = "//www.cheapoair.com /fapi/contentapi/v1/FlightService/GetRouteStatusByDepartureDate/mweb/" + Airport Departure Code [0] + "/" + Airport Arrival Code [0] + "/" + Date Route + "/9d3b8dab- 2792-4e4d-9afd- fcd1d3eb25c8 ";/* check if you want to login or not */var userNameInfo = GetCookie('X-User');var SessionToken = GetCookie('X-SessionToken');if(SessionToken!=null) {var getResponseRoute = " ";getResponseRoute = $.ajaxCall(searchUrl);if(getResponseRoute!=null){$("#tracker-content").hide(); /* Hide default text on page load */displayRouteBox (getResponseRoute);} else { recordNotFound(); // If the record is not found.}} else {$("#loadingSearch").html("").hide(); // Loads Div$('# socialSignIn').show ( );hideAllResultDivs() // hide all result divsvar urlLink = window.location.href;urlLink = urlLink.split('? ');beforeLoginUrl = urlLink[0] + "?preview=1&searchBy=route&airDpt=" + airport departure + "&airDptCod e=" + airport departure + "&airArrv=" + airport arrival name +"&airArrvCode=" + airport arrival + " &dateRoute=" + dateRoute ;//console.log(beforeLoginUrl);}/* check whether to login or not Done */ } }) ; // Search end of route // Search airport start $("#searchAirport").click(function() { var airportName = $("#airportName").val(); var airportNameC = $.trim( $( "#airportCodeBy").val()); var airportNameCode = airportNameC.split("|"); var airportTime = $("#airportTime").val(); var airlineAirport = $("#airlineAirport") .val ();var airportAirlineCode = $("#AirlineAirportCode").val();// var airportDate = $("#AirportDate").val();// var AirportDate = $("#AirportDate"). attr( "data-selected-date"); var airportDate = $("#AirportDate1").val();//AirportDate = decodeDate(AirportDate);//AirportDate = "4-7-2015"; // Only For today when (validationAirport()) { // start loding$("#loadingSearch").html("Processing...").show(); // Loading Div//$("#tracker-content").hide(); /* Hide default text on page load */// Stop hosting/* Airline filter */var airlineCodeVal = ' ';if(airlineAirportCode!=''){airlineCodeVal=airlineAirportCode+'/';}/* Airline Filter End */searchUrl = "//www.cheapoair.com/fapi/contentapi/v1/FlightService/GetAirportFlightsStatus/mweb / " + AirportNameCode[0] + "/" + AirportDate + "/" + AirportTime + "/6/"+airlineCodeVal+"9d3b8dab-2792-4e4d-9afd-fcd1d3eb25c8";/* check if you should login or not */ var userNameInfo = GetCookie('X-User');var SessionToken = GetCookie('X-SessionToken');if(SessionToken!=null){var getResponseRoute = "";getResponseAirport = $.ajaxCall(findUrl);//$ ( '# ajaxDiv').html(JSON.stringify(getResponseAirport, null, "\t"));if(getResponseAirport!=null){$("#tracker-content").hide(); /* Hide default text when loading the page *///$('#ajaxDiv').html(JSON.stringify(getResponseAirport, null, "\t"));displayAirportBox(getResponseAirport);} el s e{ recordNotFound(); // If the record is not found.} } else {$("#loadingSearch").html("").hide(); // Loading Div$('#socialSignIn').show();hideAllResultDivs() // hide all results Divsvar urlLink = window.location.href;urlLink = urlLink.split('?');beforeLoginUrl = urlLink[0 ] + '? console.log(beforeLoginUrl);}/* check whether to login or not done */ } }); // Search for airport endArrival records not found.
FAQs
Can we track live flight status? ›
A: Yes, you can track both your international and domestic flights online with our live flight tracker. Q. Can I get email and SMS 'Flight Status' alerts? A: Once you have made the booking, you will start getting flight status updates by email or SMS.
How do I check the status of my flight? ›If you want to know everything about your flight, just log in to PNR Status of the airlines and details would be in front of your screen. PNR Status enquiry is the best way of gathering the confirmation about your flight. So when you fly with any Airlines, you should check the airline PNR Status before flying.
How do I check to see if a flight is on time? ›To check if your flight is delayed or not, go to the flight status page of EaseMyTrip. After that, you can choose the airline name from the drop down menu and then enter your flight number and date of travel. It will display the status of your flight and you will come to know if your flight is on time or delayed.
How can I track a flight live free? ›...
Free flight radar apps
- Flightradar24 (>50 million downloads)
- FlightAware (>10 million downloads)
- plane finder (> 1 million downloads)
- RadarBox (>500,000 downloads)
Track Flights in Spotlight Search
On iPhone and iPad, you can also track flights in Search. Swipe down from the middle of the Home screen and simply input the flight number into the search field to get departure and arrival information. Tap the information card to get the additional details mentioned above.
When running Google Earth, you will see an interface like the figures below that updates every minute with the latest flight track. When there are no current flights or during times that the real time satellite data feed is down, you may use FlightAware to track the aircraft's history or future flight plans.
Which app is used to check flight status? ›Flightradar24 | Flight Tracker 4+
How many flights are in the air right now? ›Doing some rough math based on that estimate, it's likely that there are anywhere between 7,782 and 8,755 commercial planes in the air on average at any given time these days.
How long can a flight be delayed before compensation? ›For flights within the U.S., if you are delayed on the tarmac for more than 3 hours, you are entitled to compensation per the DOT guidelines.
How do you keep track of flight hours? ›A pilot's logbook has historically served this purpose, and while many pilots now opt for a more modern electronic route by logging in their hours online, others still prefer the steady feel of pen and paper when jotting down flight details and time.
How are flight hours logged? ›
Flight time can be logged under Pilot in Command, Solo, Second in Command, Cross Country, Night, Simulated Instrument, and Actual Instrument categories. The total flight time is the sum of the pilot's flight time in all the categories and is called Total Time (TT).
How can I track someone else's flight? ›If you ever need to track when a plane is taking off or landing, or show someone else your flight path or flight data, FlightAware has you covered. If you log onto their website, you can enter your flight information and track the airplane with just a few clicks.
Can you track a family members flight? ›By partnering with FlightAware, Sygic is able to inform families about a plane's departure, landing, delay, or cancellation without needing GPS or a data connection. The new update means Family Locator has become the first app in the world to offer free basic flight tracking to family members.
Can I track a passenger on a flight? ›Can you find out if someone was on a flight? Other than by asking them, no, there is not. Airlines do not release passenger lists publicly.
Does iPhone track travel? ›Significant Locations: Your iPhone and iCloud-connected devices will keep track of places you have recently been, as well as how often and when you visited them, in order to learn places that are significant to you. This data is end-to-end encrypted and cannot be read by Apple.
Can Find My iPhone still track you on airplane mode? ›If your phone can't communicate with other devices, it can't share its location. Likewise, Apple's Find My service will not work if airplane mode is turned on and Wi-Fi is unavailable — Find My will only be able to show the phone's location from when it last had internet connectivity.
Is Google Earth showing live? ›Are Google Earth images live? No they are not. The level of how updated they are depends on when the image was taken. If you look at the bottom right corner of Google Maps, it will actually tell you the year it was taken.
Can I track a flight with Google? ›Find tracked flights or turn emails off
Go to Google Flights. Tracked flight prices. To find flights you're tracking, click a saved route. To turn tracking emails on or off, click Add notification .
You can see a large collection of imagery in Google Earth, including satellite, aerial, 3D, and Street View images. Images are collected over time from providers and platforms. Images aren't in real time, so you won't see live changes.
Which is better FlightRadar24 or plane finder? ›PlaneFinder does almost everything that FlightRadar24 does, but I find that there are certain functions you can achieve such as advanced filters, e.g. show all aircraft above a certain height, speed or indeed of a certain airline.
How accurate is FlightRadar24? ›
For aircraft without known destination, position is estimated for up to 10 minutes. The position is calculated based on many different parameters and in most cases it's quite accurate, but for long flights the position can in worst cases be up to about 100 km (55 miles) off.
What is the cost of FlightRadar24? ›Our Silver subscription is just USD 9.99 per year and offers no ads and other additional features like more labels and historical data.
Which airport has the most flights per day? ›Rank | Airport | Code |
---|---|---|
1. | Hartsfield-Jackson Atlanta International Airport | ATL/KATL |
2. | O'Hare International Airport | ORD/KORD |
3. | Dallas/Fort Worth International Airport | DFW/KDFW |
4. | Denver International Airport | DEN/KDEN |
In 2022, American Airlines is the largest commercial flights operator in the world owning a fleet of 911 aircrafts ranging from Boeing to Airbus and an increase of 161 aircrafts has been planned.
Why are more planes flying over my house? ›Why do planes have to fly over residential areas? Aircraft must fly over residential areas because of the small distances between some airports and neighborhoods. Therefore, it is sometimes necessary for aircraft to fly over these residential areas in order for aircraft to safely reach the airports.
At what point is a flight considered delayed? ›A flight delay is when an airline flight takes off and/or lands later than its scheduled time. The United States Federal Aviation Administration (FAA) considers a flight to be delayed when it is 15 minutes later than its scheduled time.
What is the 3 hour delay rule? ›Once your flight is delayed by 3 hours, you become eligible for compensation. But when is a flight technically considered delayed? Many passengers understandably believe this is the time spent waiting for the flight to depart, but this isn't actually the case.
What are your rights if flight delayed? ›If you have been delayed for more than five hours and no longer wish to travel then you are entitled to a refund. If you are a transfer passenger and missed your connection flight because your first flight was delayed, you are also entitled to a flight back to your original departure point.
Is there an app to log flight hours? ›MyFlightbook (free): This online logbook uses the GPS on your iPhone, iPad, or Android device to log the telemetry for upload after you close out your flight. It can then be viewed on a Google Maps overlay through the Web page or downloaded in various formats, including CSV and KML files.
Are flight logs public? ›Aside from military and government sensitive flights, flight information collected by the FAA is considered public information because taxpayers pay for air traffic controllers, runways, towers, and other resources utilized by both commercial and private pilots.
Do flights actually leave on time? ›
In an ordinary year, around 20% of flights fail to depart on time, owing to a variety of logistical mishaps and punctuality defeaters such as bad weather, air traffic issues, mechanical problems, and staffing shortages.
Who has most flight log hours? ›According to the Guinness Book of Records, two individuals hold the world records for the highest accrued flying hours for any pilot and a female pilot. John Edward Long, Jr (known simply as Ed Long) and Evelyn Bryan Johnson are true aviation pioneers and iconic aviators of their time.
How can I track someone's location by their phone number online? ›- Use MSpy.
- Use Localize.
- Use Native Phone Locator.
- Download SPYERA.
- Use an IMEI Tracker.
- Caller ID Name (CNAM) Lookup.
- Search via Whitepages.
Flightradar24 is a free app and includes all the above features. If you want even more great features from Flightradar24 | Flight Tracker there are two upgrade options—Silver & Gold—and each comes with a free trial.
How do I track live flight on Imessage? ›Launch the native Messages texting app on your iPhone and open the text message thread that contains your flight information. You'll know the flight tracker feature works when the text with the flight information appears underlined, which means it's actionable and you can tap on it.
Which flight tracker is most accurate? ›Both a flight-tracking website and a downloadable app, FlightAware is the one you likely see quoted most in news stories about all things aviation due to its accurate, real-time information on all aspects of flying.
Is Flightradar24 real? ›Flightradar24 is a global flight tracking service that provides you with real-time information about thousands of aircraft around the world.
Does Airplane mode hide your location on iMessage? ›Depending on the phone model and OS, airplane mode may disable Wi-Fi and Bluetooth, but it won't turn off GPS. Though your phone's location services should work while in airplane mode, your phone can't be tracked by outside devices or services.
How do I get flight text alerts? ›Go to the Flight Feed → Open the "Flight Alerts" widget. Here you can sign up for text alerts for yourself or others. This must be set up for each upcoming flight.
How do I turn on live location for Messages? ›Share your location in the Messages app
Select the name of the person or group at the top of the conversation. Select Send My Current Location. Your recipient will see your location on the map. Or choose Share My Location, then choose the length of time that you want to share your location for.