API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

GeoResultDistance

Geodesic straight-line distance (WGS84 ellipsoid) from the search's resolved reference location to the lodging's coordinates. Not a travel (driving/walking) distance. Omitted when unknown for this lodging or when the search has no resolvable reference location.

Fields

value
number
required

The magnitude of the distance.

Example 1834.6
unit
string enum
required

The unit of measurement. Currently always meters; other units may be added later (handle unknown values gracefully, per Forward Compatibility).

Values m · Example m
Example
{
  "value": 1834.6,
  "unit": "m"
}