You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Current »

Parameters for the request operations

All parameters are optional except parameter airport.
NB! All the parameters and its values are case-sensitive.
The semantics of each parameter are described in the table below.

Parameter

Values

Description / Comments

For example

airportRequired
max: 3-4 characters
value, ex. OSL, BGO, TOS
The operating airport that considers the flight leg orientations.
Formatting is given as IATA airport code and must written in uppercase letters. Parameter is required!
airport=OSL, airport=BGO, etc.
TimeFromOptional
defaults to value: 1 if not set
Max value: 36

The number of hours before the current time for which data is wanted.

Example:
Present time = 08:01, TimeFrom=1, TimeTo=7. Results will contain data between 07:00 and 15:00.
Present time = 08:59, TimeFrom=1, TimeTo=7. Results will contain data between 07:00 and 15:00.

Flights are selected based on ProbOBT from ARDB.

TimeFrom=1
TimeToOptional
defaults to value: 7 if not set
Max value: 744

The number of hours after the current time for which data is wanted.

Example:
Present time = 08:01, TimeFrom=1, TimeTo=7. Results will contain data between 07:00 and 15:00.
Present time = 08:59, TimeFrom=1, TimeTo=7. Results will contain data between 07:00 and 15:00.

Flights are selected based on ProbIBT from ARDB.

TimeTo=7
directionOptional
Accepted: A or D
If not set: both flight-directions
If the parameter direction is set, then the Flights will be filtered by A=Arrivals or D=Departures. If parameter direction is not set then fetch all flight leg data for both orientations.direction=A or direction=D
cdmOptional
Accepted: Y
If cdm=Y is set then cdm data as TOBT, TSAT and EIBT is added to the flight. If not set cdm data is not added.cdm=Y
additionalOptional
Accepted: Y
if the parameter additional is set to “Y” then additional data as Airline, Flight Number, Status and Delayed is added to Flight.additional=Y
lastUpdateOptional
Accepted format: yyyy-MM-ddTHH:mm:ssZ
ex: 2023-01-20T13:02:37Z
If set, then Flights that are updated after the given timestamp within the period of TimeFrom and TimeTo. Datetime has to be given in UTC/Z zone. Recommended for polling-applications looking for new updates to flights.lastUpdate=2023-01-03T09:30:00Z
handlingdataOptional
Accepted: Y
If handlingdata=Y is set then HandlerData as HandlerCode, HandlerName and HandlerServiceType is added to flights. If not set, HandlerData is not added.handlingdata=Y
gateClosedTimeOptional
Accepted: Y
If set then gateClosedTime will be added to departure-flights with a gateClosedTime, if the data exists. Example value of gateClosedTime: 2023-03-14T10:35:12ZgateClosedTime=Y
codeshareOptional
Accepted: Y
If set then codeshareinfo is added to flight. CodeshareInfo consists of codeshareAirlineDesignators, codeshareAirlineNames, codeshareFlightNumbers and codeshareOperationalSuffixs.codeshare=Y
arrivalGateOptional
Accepted: Y
If set then gate is added to arrival-flight.arrivalGate=Y
paxFromLoadOptional
Accepted: Y
If set then paxBoarding(departure flights) and paxDisembarking(arrival flights) will be displayed.paxFromLoad=Y

Please note that if incorrect syntax is used on a parameter, that parameter will be left out and its default values will be used.

Examples where all the parameters are used in url:

Link for internal consumers in production:
https://services.avinor.no/XmlFeedOperativeWithPax/v1.0?airport=BGO&TimeFrom=1&TimeTo=4&direction=A&cdm=Y&additional=Y&lastUpdate=2023-01-20T13:02:37.340Z&handlingdata=Y&gateClosedTime=Y&codeshare=Y&arrivalGate=Y

Link for external consumers in production:
https://asrv.avinor.no/XmlFeedOperativeWithPax/v1.0?airport=BGO&TimeFrom=1&TimeTo=4&direction=A&cdm=Y&additional=Y&lastUpdate=2023-01-20T13:02:37.340Z&handlingdata=Y&gateClosedTime=Y&codeshare=Y&arrivalGate=Y

Link to test environment:
https://services-test.avinor.no/XmlFeedOperativeWithPax/v1.0?airport=BGO&TimeFrom=1&TimeTo=4&direction=A&cdm=Y&additional=Y&lastUpdate=2023-01-20T13:02:37.340Z&handlingdata=Y&gateClosedTime=Y&codeshare=Y&arrivalGate=Y

General sorting rules

The flights are sorted on: schedule_time, flight_id

XML schema file.

The XML schema files for the LETIS based service is obtained from the URL:

Service field mapping

Service term

ADD term

Comment

flight_idFlightId
date_of_operationFlightDepartureDate
dom_intFlightDIIndicator
schedule_timeSIBT for arrivals, SOBT for departures
arr_depN/A"A" - Arrival, "D" - Departure
airportArrivalAirportIATA or DepartureAirportIATA
via_airportFlightRouteIATADerives from flightId, multi flight, +++
check_inCheckInDisplayText
gateGate
gate_statusGateStatus
beltBaggageClaimUnit
belt_statusBeltLastBag or BeltFirstBagIf BeltLastBag = C else BeltFirstBag = O
belt_startBeltFirstBag
belt_stopBeltLastBag
standAircraftParkingPositionArrival, AircraftParkingPositionDepartureField type depends on flight direction
est_timeELDT or ETOT or EOBT

Arrival: ELDT. Departure: EOBT if set, else ETOT

act_timeALDT or ATOTArrival: ALDT. Departure: ATOT
onb_ofb_timeAIBT or AOBTArrival: AIBT. Departure: AOBT
next_infoNextInformationTimeThe dateTime of next information
linked_flightLinkedArrival.FlightId or LinkedDeparture.FlightIdif arrival LinkedDeparture.FlightId, else departure LinkedArrival.FlightId
last_delay_codeArrivalDelay or DepartureDelay
last_delay_code2ArrivalDelay or DepartureDelay
cancelled_flagFlightLegStatusChecks if flight status is "CANCELED" returns true/false
codeshare_indN/AThe AltiFlightLegQuery returns data for physical flights, possibly with information about code shares. In any case the FlightLeg is never a code share, value is always set to "N"
service_typeFlightServiceTypeIATAOne letter IATA service type code e.g. ‘J’ (Schedule passenger) and ‘C’ (Charter passenger). No restrictions on service type.
aircraft_regAircraftData.AircraftRegistrationRegistration number of the aircraft
ramp_fuelDepartureData.FuelRampRequestedField ramp fuel (IR1 message), must convert from _Kilo to fuelType.
remark_1RemarkData.RemarkTextIf arrival will display public, if departure will not filter by type
remark_2RemarkData.RemarkTextWill only show staff departure no matter direction
cdm_tobtTOBT
cdm_tsatTSAT
cdm_eibtEIBT
airlineOperatingAirlineIATA
flight_numberFlightNumber (part of FlightId)Is derived from FlightId
statusNextInformationTime, ALDT, AIBT, ELDT, SIBT, AOBT, ATOT, EOBT, ETOT, SOBTIf status_code = ’’:       status_time = ’’
If status_code = ’N’:     status_time = ’NEXT_INFO’
If status_code = ’E’:     status_time = ’ELDT’ - for arrivals, ’EOBT’ or 'ETOT' - for departures
If status_code = ’D’: status_time = ’AOBT’ – for departures (ATOT if AOBT is not present)
If status_code = ’A’: status_time = ’ALDT’ – for arrivals (AIBT if ALDT is not present)
If status_code = ’C’:     status_time = ’’
delayedNOT in model

Arrival: Is derived from ProbLDT, ProbIBT, SIBT

Departure: Is derived from ProbOBT, SOBT.


handlingAgentArrivalData.HandlerName or DepartureData.HandlerName
handlingAgentCodeArrivalData.HandlerCode or DepartureData.HandlerCode
codeshare_keyN/A
flight_leg_keyN/A
total_paxPassengerData.PaxSeatedOnBoard
total_plePaxEstimateDisembarking or PaxEstimateBoardingPaxEstimateDisembarking for arrival or PaxEstimateBoarding for departure
total_transferPaxTransferDisembarking or PaxTransferBoardingPaxTransferDisembarking for arrival or PaxTransferBoarding for departure
gateClosedTimeGateCloseExample value: 2023-03-14T10:35:12Z
codeshareAirlineDesignatorsNA
codeshareAirlineNamesCodeshareAirlineIATA
codeshareFlightNumbersCodeshareFlightNumber
codeshareOperationalSuffixsNA

Time specifications:

All times are listed in UTC format and are in the format ISO 8601 (Wikipedia: ISO 8601-format) [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]Z. Please make sure to adjust for time zone and summer time as required.

Example: 2009-12-31T16:00:00 corresponds to 31. Descember 2009 17:00 o'clock local time in Norway (CET), while 2009-06-23T16:00:00 correcsponds to 23. June 2009 18:00 o'clock local time in Norway (Summertime).

References:

  • No labels