typeSearchLocation
The SearchLocation complex type is used to indicate airport and city codes. Unless otherwise specified, IATA city and airport codes are used.
-
In the Airport child, the IATA code is processed as an airport code.
-
In the City child, the IATA code is processed as a city code.
-
In the CityOrAirport child, the IATA code is processed as both a city and airport code.
- The PreferCity attribute of CityOrAirport can be used to weight the responses in favor of either Airport response (specified airport only) or City response (includes alternate airports in the metro area). For some airport codes on Worldspan, it is recommended to use PreferCity=”true”. See the Exceptions.
- RailLocation identifies the UCode location of a train station.
With Air.xsd, shopping for rail fares using TCodes and UCodes is available in Rail LowFareSearchReq and LowFareSearchAsynchReq
- The T and U codes are sent in SearchAirLeg/SearchOrigin or SearchDestination/RailLocation @Code.
- Distance identifies the value, units, and cardinal or ordinal direction.
For city/airport codes that are the same, the code is processed only as an airport code. For example, 'LAX' is processed as Los Angeles International airport, but other airports in the Los Angeles metro area are NOT included in the request.
For city/airport codes that are the same, the code is processed only as an airport code. For example, 'LAX' is processed as a city code for Los Angeles. In this case, all airports in the Los Angeles metro area are included in the request, but preference is given to Los Angeles International
Note: Some suppliers do not support searches by city code; an error response is returned.
For city/airport codes that are the same, the code is processed as both a city and airport code. For example, 'LAX' is processed as both Los Angeles International airport and the Los Angeles metro area. In this case, both Los Angeles International airport and other Los Angeles metro airports are included in the request, and NO preference is given to Los Angeles International.
Exceptions
Worldspan and ACH
By default, both ACH and Worldspan return alternate airports in the same metropolitan area in the Low Fare Shopping response. The presence of multiple airports in the response can be modified based on the SearchOrigin/SearchDestination parameters in the request. The Distance parameter is not supported for this request; metro areas for associated airports are determined through reference data.
Alternate airports are returned if:
- Airport is requested.
- City is requested.
- CityOrAirport is requested with PreferCity set to "true".
Only the requested airport is returned if:
- CityOrAirport is requested with PreferCity set to "false".
On Worldspan (1P), for the following airport codes it is recommended to use PreferCity=”true”.
-
BFS
-
LAX
-
MIA
-
IEV
-
SHA
-
MEX
-
DXB
-
IST
-
GLA
-
BER
-
OSL
-
BKK
-
KUL
-
JNB
-
SFO
-
BRU
-
FRA
-
DUS
-
WAW
-
VCE
- HOU
- PHL