Is there a generic term for origin and destination seen from an airport point of view? I am trying to create a program that gives you the departures or the arrivals from a given airport.

Thus, in the software code, I would like to refer to both origin anddestination with the same term, in order to print the former if the user requested arrivals, and the latter if the user requested departures.

So basically I want to know if there is a common name for these two terms, when speaking from the airport point of view, i.e. referring to a generic flight, regardless of it being inbound or outbound, what is "the other airport" in the jargon?
Perhaps the “remote” airport — that should work for both arrivals and departures.