Concepts

Locations & geocoding

The four ways to tell the Direct Travel API where to search — address, coordinates, bounding box, or hotel IDs.

Every search needs a location, supplied as one of four inputs. Provide at least one, or the request fails with LOCATION_REQUIRED.

InputParametersWhen to useNotes
AddressaddressA city, region, or place name you have as textGeocoded server-side; less precise than coordinates
Coordinateslat + lng (+ radius)You already have a point and want the most precise, fastest searchSkips geocoding
Bounding boxnelat, nelng, swlat, swlngMap UIs searching the visible viewportAll four corners are required together
Hotel IDshotelidsLooking up specific known staysCan be Stay22 hotel IDs or Hotel IDs from the providers

Points of interest

For a landmark or venue (e.g. "Eiffel Tower", "Bell Centre"), geocode the point of interest to coordinates first, then search with lat/lng + radius. This is faster and more precise than passing the name as address.

Priority

When both address and lat/lng are present, coordinates win; the address is used only as a fallback and for display context.

On this page