Skip to main content

DestinationCriteria

Resolves a city or geo point to hotel codes via Content before fan-out. Mutually exclusive with hotels and hotelCodeProvider. Provide code XOR latitude+longitude. Without radiusKm, code is the whole city. radiusKm (maximum 50) means nearby. Three-letter codes select iata_city lookup (existence is not implied by the pattern alone). DESTINATION_CRITERIA_ENABLED is on in test and production. If the flag were off, a present destination would return HTTP 200 with errors[] (additionalData.warning_type = destination_disabled). Prefer SSE (Accept: text/event-stream) for large cities that expand to many hotel codes.

codestring

Metropolitan IATA city code (exactly three letters, for example BCN, MAD). Uses the iata_city fast path. Do not send free-text city names or place UUIDs. Without radiusKm, the whole city catchment is searched.

Possible values: Value must match regular expression ^[A-Za-z]{3}$

Example: BCN
latitudenumber

Latitude of a geo point (use with longitude; mutually exclusive with code).

longitudenumber

Longitude of a geo point (use with latitude; mutually exclusive with code).

radiusKmnumber

Optional nearby radius in kilometres (maximum 50). When omitted with code, the whole city catchment is used. When set, scope is nearby of the code or coordinates.

Possible values: <= 50

DestinationCriteria
{
"code": "BCN",
"latitude": 0,
"longitude": 0,
"radiusKm": 0
}