● Travel Never Stops. Neither Do We. 365 Days a Year.

Airport and Airline Reference Data in Travel APIs

Manage airport, airline and location data in travel platforms with stable identifiers, supplier mappings, update workflows and missing-location checks.

Operations analysts comparing reference maps near an airport terminal

Airport and airline reference data is the identity layer beneath flight search, itinerary display, booking validation, and supplier reconciliation. A travel API airport airline reference data design must distinguish a city search area from an airport, an airline code from a carrier role, and a supplier identifier from a globally assigned code. Reliable systems store those distinctions explicitly, update them with provenance, and preserve the values used when a booking was confirmed.

Identify the right entity before comparing codes

Autocomplete often invites a traveller to search for “London,” but an offer ultimately identifies specific airports. London metropolitan code LON is a search concept; Heathrow airport LHR is a facility. Heathrow also has ICAO identifier EGLL, while Duffel documents its own airport resource identifier arp_lhr_gb. These values may describe related geography, but they are not interchangeable keys.

A metro query can expand to eligible airports under a dated membership rule. An airport query should resolve to that airport only. Search expansion must also respect the connected supplier's supported locations; geographic membership alone does not establish service availability. Keep the originally selected search concept so the interface can explain why a result was included.

Airlines have similar ambiguity. BA is the IATA airline designator illustrated for British Airways in Duffel's airline schema. A segment can have a marketing carrier, which presents a flight number commercially, and an operating carrier, which operates the service. They may match or differ. Neither role should be inferred from the other, and neither establishes ticketing or settlement responsibility by itself.

A domestic airport identifier, a three-letter IATA location code, a four-letter ICAO airport code, and a private supplier station code answer different questions. Even strings with the same characters can conflict across systems. Never deduplicate entities by raw code alone.

Separate authoritative sources from supplier adapters

Official assignments and usable commercial data

The IATA Airport & Location Identifier Database covers assigned airport, metropolitan, and intermodal location identifiers; its published description explains updates, included fields, and subscription access. Its coverage is broader than passenger airports. Check licensing, permitted redistribution, and update obligations before making it a production ingestion source.

The IATA Airline and Airport Code Search is useful for targeted human verification, not a substitute for a contracted complete feed. IATA also describes controlled duplicate airline codes in its search interface. That is a further reason to retain carrier identity and temporal context rather than assume a bare two-character value always maps unambiguously.

The Duffel Airports schema describes its airport resource, including id, iata_code, nullable icao_code, country, time zone, and potentially nullable metropolitan city association. The airport list endpoint is paginated and not guaranteed to return a stable order. Its Airlines schema documents airline resource IDs, names, nullable IATA airline codes, and optional presentation assets. These supplier resources are adapter inputs, not universal replacements for code assignment records.

For United States aeronautical records, the FAA 28 Day NASR Subscription offers a US-scoped data source with publication cycles. Do not treat NASR as a worldwide airline or destination directory. Match the applicable fields and effective cycle when reconciling US airport changes; never convert an FAA local identifier into an IATA code merely because the characters appear similar.

Authority is field-specific

There is no single source that should overwrite every property. An official assignment can govern code ownership; a supplier determines whether its own station is usable; operations determines a contracted coach pickup point; and a hotel's location taxonomy may be independent of flight geography. Define an authority matrix per field, with conflict handling, rather than adopting “latest feed wins.”

Model namespaces and lifecycles explicitly

The following filled reference matrix combines verified public identifiers with clearly labelled illustrative integration values. It describes a proposed implementation, not existing TravelTech365 customer data. The fictional coach suppliers, hotel identifiers, lifecycle events, and status decisions are test examples, not published vendor assignments.

Reference identities and lifecycle rules. Scope: London flight search, an airport and carrier example, and fictional coach and hotel adapters.
Namespace and kindValue and meaningProposed lifecycle and use
IATA metroLON — London metropolitan search locationActive search concept; expand through dated airport membership, never book a metro as a segment endpoint.
IATA airportLHR — HeathrowActive airport identity; retain historical names and effective dates when attributes change.
ICAO airportEGLL — Heathrow identifierCross-reference to the same airport entity; not a replacement for the air supplier's booking key.
Duffel airport resourcearp_lhr_gb — Heathrow resource IDSupplier-specific crosswalk to LHR; refresh from documented supplier resource data.
IATA airlineBA — British AirwaysCarrier identity; record separately in each segment's marketing and operating roles.
Coach supplier Alpha station, fictionalSTN-17 — Alpha's Heathrow coach bayActive only for Alpha and its contracted product; closure can disable new selections.
Coach supplier Beta station, fictionalSTN-17 — Beta's distinct London depotSeparate entity despite identical code; supplier namespace prevents collision.
Hotel international destination, fictionalHOTEL-INT:LON — broad London hotel searchProvider-specific destination mapping; does not imply a flight airport equivalence.
Hotel special destination, fictionalHOTEL-SPC:LON-EXPO — event zoneIndependent special-purpose mapping; activation and coverage approved separately.

Store a durable internal entity ID that never encodes a mutable display name. A practical model separates place, place_identifier, place_relationship, carrier, carrier_identifier, supplier_station, and supplier_mapping. An identifier row needs namespace, kind, code, entity_id, valid_from, valid_to, source_version, and verification_status.

Use half-open effective intervals: a row applies when valid_from <= travel_instant and travel_instant < valid_to, with an open end for current entries. Enforce uniqueness for a namespace, kind, code, and overlapping validity window where the governing source requires it. Model permitted duplicate codes as distinct records with documented disambiguators; do not silently pick the first match.

Relationships deserve their own lifecycle. For example, LON contains eligible airport LHR for a particular search policy period, while arp_lhr_gb maps to Heathrow only within the Duffel adapter. A hotel destination may cover parts of London without becoming a metro member. Record who approved a relationship and why.

Airport terminal with coach boarding and an elevated rail connection

Ingest and publish reference data safely

Stage immutable input before normalization

Build one ingestion job per source and contract. Keep the retrieved payload, source URL or feed identifier, declared publication or effective date, retrieval timestamp, checksum, and parser version. For a licensed IATA delivery, follow its supplied layout and rights. For Duffel list resources, follow pagination until complete, validate page continuity, and never assume response ordering. For a coach supplier, download stations only through the endpoint or file delivery authorized by that specific commercial agreement.

A fictional Alpha agreement may specify a nightly full station download, while fictional Beta might deliver a weekly approved CSV. Those cadences illustrate design choices; they are not claims about actual suppliers. Store separate fetched_at, source_effective_at, and published_at values. A freshly downloaded file can still describe data that is not yet effective.

  1. Authenticate and download within contractual limits; reject truncated files and unexpected schemas.
  2. Parse into source-specific staging rows without merging equal-looking station codes.
  3. Validate code format according to namespace, required attributes, duplicate rules, and referential integrity.
  4. Compare staged records with the previously published source version; classify additions, changes, closures, and removals.
  5. Quarantine conflicting or high-impact changes for review, including airport remapping and carrier identity changes.
  6. Publish an atomic, versioned snapshot with index rebuilds and a recorded rollback pointer.

Use tombstones instead of deleting missing stations immediately. An absent row could mean a provider changed filtering rules, a partial download occurred, or a station truly closed. Require a confirmed full delivery or explicit closure event before disabling new bookings. Alert on suspicious coverage drops using a baseline appropriate to the contracted inventory, without hardcoded universal percentage thresholds.

Make lookup behavior explicit

A resolver should accept source_namespace, entity_kind, external_code, effective_at, and an optional supplier contract. It should return one canonical entity, a documented ambiguity response, or a not-found result. Returning the nearest textual match is not safe for booking operations.

Publish resolved search indexes separately from the transaction database. Index aliases, locale-specific display names, metro expansion membership, selectable status, and supplier capabilities. Rebuild indexes against a pinned reference release so search results cannot mix an old metro map with newly retired supplier stations.

Validate an illustrative search-to-booking flow

Fixture, assumptions, and expected output

Everything in this worked fixture is illustrative implementation data, not a customer deployment, live flight schedule, fare, availability promise, or supplier booking response. The public code examples retain their published meanings; dates, offer references, and business rules are invented specifically for testing.

Search-to-booking validation fixture. Scope: fictional London-origin journey on 14 December 2026 and a simulated Duffel-adapter offer.
FieldFixture valueRequired validation
Customer selectionorigin_kind=metro; origin_code=LONPreserve metro intent and resolve active membership at search time.
Returned departureairport=LHR; icao=EGLLVerify LHR belongs to the published LON expansion, and preserve LHR for the segment.
Adapter airportduffel_airport_id=arp_lhr_gbMatch the adapter resource to canonical Heathrow, without treating the ID as an IATA code.
Offer referenceoffer=DEMO-OFFER-0302Illustrative local test token only; retrieve or revalidate a real offer using supported API semantics in production.
Carrier rolesmarketing=BA; operating=BAResolve both roles separately, even when they have equal codes.
Travel instant2026-12-14T09:00:00ZExample instant only; validate actual provider-local departure fields and time zones before booking.
Reference releaseREF-0302-APin identifiers and membership rules used to display the quote.
Expected decisionvalidate=pass; book=not-submittedPassing identity checks never substitutes for offer validity, price, passenger, or payment checks.

Step one: normalize the request as a typed metro selection, not an airport. Resolve LON against REF-0302-A, producing an eligible airport set that includes LHR. Apply supplier-specific route and location capability filters only afterward. If the connected flight supplier accepts a metro parameter, retain the supplier's supported query form; otherwise expand only using approved adapter rules.

Step two: on receipt of the simulated offer, match its departure airport to the canonical LHR entity and verify its supplier-specific crosswalk. Record the provider's original fields alongside resolved identifiers. A mismatch between an external airport ID and the offered IATA location is a blocking integrity error, not an invitation to substitute a similar code.

Step three: store two carrier references on each segment, marketing_carrier_id and operating_carrier_id, plus the source values. In the base fixture both resolve to BA. In a separate negative test, set operating_carrier to fictional DEMO-OPS-1. The validator must reject that token as an unrecognized production IATA carrier; a controlled test registry may resolve it only in sandbox mode. This proves that marketing BA must not silently overwrite the operator.

Step four: before booking, refresh or revalidate the offer according to the contracted flight workflow. Compare departure and arrival airports, dates, marketing and operating carriers, segment sequence, passenger eligibility, ancillary selections, currency, and final payable amount with the accepted quote. A newly refreshed reference display name may change without altering identity; a changed airport or operator requires explicit review under booking policy.

Step five: create an immutable booking snapshot containing the selected metro, actual segment airports, raw supplier identifiers, canonical IDs, both carrier roles, relevant display names, local timestamps with zones, source version, price acceptance, and provider response. Once confirmed, do not rewrite that snapshot when tomorrow's reference release arrives.

Assertions that catch realistic mistakes

  • Metro-as-airport: booking input containing LON as the resolved segment airport fails unless the supplier explicitly represents the segment that way and the adapter has a documented conversion.
  • Wrong crosswalk: arp_lhr_gb linked to another canonical airport blocks publication and booking.
  • Missing carrier: an operating airline absent from the source is flagged; substituting marketing BA is forbidden.
  • Stale quote: a valid identity map with an invalidated supplier offer cannot progress to booking.
  • History preservation: changing Heathrow's display label in a later release does not mutate an existing confirmed itinerary.

Keep ground and hotel mappings independent

Two coach suppliers, one station string

Consider fictional supplier Alpha's STN-17 at a Heathrow pickup bay and fictional supplier Beta's STN-17 at a London depot. The correct keys are (coach-alpha,station,STN-17) and (coach-beta,station,STN-17). They represent two different supplier stations. A raw code index that merges them could offer a transfer from the wrong collection point.

For Alpha, link the station to Heathrow with relationship serves_airport, not same_as_airport. Include terminal or meeting-point instructions only when furnished by the actual contracted supplier and applicable to that booking. Beta's depot may instead link to London via located_in_city. Neither relation makes a supplier station equal to LHR or LON.

If Alpha renames its location, retain the station identity while versioning the label. If Alpha closes it, mark the station unavailable for new pickup selection from the effective closure instant, preserve prior reservations, and consult supplier policy for affected future services. A renamed station is not automatically a moved station; compare coordinates and service constraints before deciding that identity can remain unchanged.

Hotel destinations are not flight locations

The fictional international hotel destination HOTEL-INT:LON can represent a broad London property search. The fictional special destination HOTEL-SPC:LON-EXPO can represent an event district defined independently by a hotel supplier. Neither code is an IATA assignment. Treat both as examples of separate hotel destination taxonomies, not as known vendor formats.

A flight-plus-hotel package may use LON to broaden flight departure or arrival selection, LHR for the actual landing airport, the international hotel destination for the accommodation search, and the special destination for a campaign-specific property set. Package assembly records four deliberate mappings, with independent supplier scopes and validity dates. Proximity may rank options, but it must not forge identity equivalence.

Test a hotel property present in both fictional destinations: deduplicate properties by the hotel's trusted supplier property key, not by the destination code. Test another property appearing only in the special destination: the broader international mapping must not automatically erase it. Report mapping coverage gaps to the product team before activating a package configuration.

Control new entities and reference changes

Extranet requests require reviewable decisions

Allow an authorized operator to propose a new airport, airline, station, or mapping through an extranet workflow. A proposal should capture entity type, code namespace, proposed attributes, evidence, requesting user, intended effective date, affected suppliers, and business justification. A proposal is not immediately searchable or bookable.

For a new airport, verify whether the authoritative code is assigned, whether the facility is eligible for the intended product, and whether each connected supplier recognizes it. For a new airline, validate identity, any IATA designator, source provenance, and supplier availability. An internal request cannot create an official IATA assignment. A station or hotel destination may be valid solely within its supplier's contracted namespace.

Use a workflow such as draft, submitted, under_review, approved, scheduled, active, or rejected. Require separation between proposal and approval for high-impact records. Record diffs, reviewer comments, evidence references, activation conditions, and the release that made the entry available. Every approval should be reversible without destroying its audit trail.

Closure, rename, and reassignment

Closure, renaming, and code reassignment require different handlers. A rename updates display attributes with effective dates and aliases. A closure retires new selection and may require exception handling for already sold future travel. Reassignment changes the meaning of a code over time and must never rewrite historical entity references. If a supplier reuses a station code, close the old validity interval before opening a new entity mapping.

For a hypothetical Alpha closure on 1 January 2027, a search for services after the effective instant must exclude the station from new selection. Existing bookings retain the as-booked pickup text and station key, while a disruption queue identifies future departures requiring supplier confirmation. If Alpha subsequently renames a different station to the old label, the identifier history still distinguishes both places.

Proposed changes that disagree with official data or a supplier contract stay quarantined until the owner resolves them. Maintain a human-readable reason code such as UNVERIFIED_CODE, UNSUPPORTED_SUPPLIER, or CONFLICTING_LOCATION. A rejected proposal remains auditable; it should never leak into traveller search suggestions.

Distinguish freshness from as-booked truth

Reference freshness asks when a source last published data and when the application successfully ingested it. Transactional truth asks what the customer accepted and what the provider confirmed. Those are different records with different retention policies. Display the current preferred airport name in new searches, but preserve the name, code, terminal instructions, and carrier disclosures captured for an existing booking.

Build a freshness record for each source: scheduled retrieval, last success, source effective date, ingestion checksum, published release, and current health. Define per-source freshness objectives under the contract. If a feed is late, display or log the condition and decide whether the affected products may still be sold; there is no defensible global freshness threshold for every airport, airline, coach, and hotel source.

Store booked_snapshot and reference_release_id alongside canonical identifiers. A service agent can then view both “as booked” and “current reference” when investigating a discrepancy. Correction of an old booking should be a separate, authorized transaction, with supplier confirmation where needed, rather than a side effect of a reference import.

Test collisions and releases before cutover

Construct a negative fixture that deliberately injects Alpha and Beta STN-17 into a shared search index. The publishing job should reject any key built solely from STN-17. With composite namespaces, both stations remain independently searchable under their supplier products. Add tests for duplicate source rows, overlapping effective intervals, null airline IATA codes, null ICAO values, and optional metro association fields.

Promote reference releases through staging, integration, and production gates. Diff entity counts, metro membership, code mappings, supplier coverage, closed stations, and pending approvals. Execute the complete illustrative LON-to-LHR fixture against the candidate release, plus hotel destination and coach station collision tests. Monitor search zero-results, unresolvable provider identifiers, manual overrides, and booking failures after publication.

For rollback, retain the previous known-good snapshot and its search indexes. If REF-0302-B mistakenly maps Alpha's station onto Beta's depot, stop publication or atomically return the active pointer to REF-0302-A. Invalidate caches associated with the faulty release and rerun the identity fixtures. Do not roll back confirmed bookings or erase their provider responses; isolate and review any transactions created while the faulty release was active.

Rollbacks also need a forward-fix path. Open an incident recording the offending source version, parser, approval, diff, affected searches, and affected transactions. Reconcile supplier-side truth before changing a sold itinerary. Republish a corrected version under a new release ID rather than quietly reusing the failed identifier.

Complete verification and handoff checklist

Use this checklist at release approval and again when transferring ownership from development to operations. Each item should have a named owner, evidence location, result, and recorded exception if not passed.

  • Confirm the rights, update method, effective-date semantics, and permitted use for each official or supplier reference feed.
  • Verify LON metro expansion, LHR airport resolution, EGLL cross-reference, and arp_lhr_gb adapter mapping.
  • Confirm marketing and operating carrier fields remain distinct; test BA/BA and a rejected fictional operating-carrier identifier.
  • Prove Alpha and Beta STN-17 cannot collide, and that closures and renames preserve historical bookings.
  • Validate international and special hotel destination mappings independently, including overlapping and exclusive properties.
  • Review full supplier station download completeness, source freshness, reconciliation exceptions, and contract-specific access controls.
  • Approve extranet additions with verified evidence, role separation, effective dates, and a visible audit trail.
  • Run search-to-booking identity checks plus live-contract offer validation in the appropriate test environment; never mistake a reference pass for permission to charge.
  • Demonstrate atomic release activation, rollback, cache invalidation, alerting, and impacted-booking review procedures.
  • Hand off schema definitions, ownership matrix, feed runbooks, fixture results, version manifests, exception queues, and escalation contacts.

The acceptance criterion is concrete: every selectable place or carrier resolves under the correct namespace and effective release; every booking retains what was sold; every material reference change can be explained, tested, approved, and reversed without corrupting historical transactions.