{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/booking-holdings/refs/heads/main/json-schema/demand-api-accommodations-location-output-schema.json", "title": "AccommodationsLocationOutput", "description": "All location related information of this accommodation property.", "type": "object", "properties": { "address": { "description": "Translated accommodation address.", "type": "object" }, "city": { "description": "A signed integer number that uniquely identifies a city. The full list can be obtained by calling common/locations/cities.", "type": "integer" }, "coordinates": { "type": "object", "properties": { "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" } } }, "country": { "description": "A two-letter code that uniquely identifies a country. This code is defined by the ISO 3166-1 alpha-2 standard (ISO2) as described here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. The full list can be obtained by calling common/locations/countries.", "type": "string", "pattern": "^[a-z]{2}$" }, "districts": { "type": "array", "items": { "description": "A signed integer number that uniquely identifies a district. Typically, districts define known areas within a city. The full list can be obtained by calling common/locations/districts.", "type": "integer", "minimum": 1 } }, "postal_code": { "type": "string" }, "regions": { "type": "array", "items": { "description": "A signed integer number that uniquely identifies a geographical region. Regions usually define official administrative areas within a country, but may also include multiple countries and in some cases un-official but popular designations for geographical areas. An example of a region that crosses multiple countries is the Alps in Europe. The full list can be obtained by calling common/locations/regions.", "type": "integer", "minimum": 1 } } } }