{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/airport-routes-response-airport-routes-schema.json", "title": "response_airportRoutes", "description": "response_airportRoutes schema from Airport Routes", "type": "object", "properties": { "warnings": { "type": "array", "items": { "title": "warning", "type": "object", "properties": { "code": { "type": "integer", "description": "A machine-readable error code from the Canned Messages table, that will enable the API Consumers code to handle this type of error", "example": 1 }, "title": { "type": "string", "description": "An error title from the Canned Messages table with a 1:1 correspondence to the error code. This may be localized", "example": "string-value" }, "detail": { "type": "string", "description": "An easy-to-read explanation specific to this occurrence of the problem. It should give the API consumer an idea of what went wrong and how to recover from it. Like the title, this field\u2019s value can be localized.", "example": "string-value" }, "source": { "type": "object", "description": "The Warning Source Definition", "properties": { "parameter": { "type": "string", "description": "The key of the URI path or query parameter that caused the error", "example": "string-value" }, "pointer": { "type": "string", "description": "A JSON Pointer RFC6901 to the associated entity in the request body that caused this error", "example": "string-value" }, "example": { "type": "string", "description": "A sample input to guide the user when resolving this issue", "example": "string-value" } } } } } }, "data": { "type": "array", "items": { "title": "destination", "type": "object", "description": "Description of a particular point or place in physical space", "properties": { "type": { "type": "string", "description": "type of API result \"location\"", "example": "string-value" }, "subtype": { "type": "string", "description": "Location sub-type (e.g. airport, port, rail-station, restaurant, atm...)", "example": "string-value" }, "name": { "type": "string", "description": "Label associated to the location (e.g. Eiffel Tower, Madison Square)", "example": "\"Eiffel Tower\"" }, "iataCode": { "type": "string", "description": "IATA location code", "example": "\"PAR\"" }, "geoCode": { "type": "object", "description": "Geographic coordinates describing the position of any location on the surface of Earth", "properties": { "latitude": { "type": "number", "description": "Latitude of the position expressed in decimal degrees (WSG 84), e.g. 6.244203. A positive value denotes northern hemisphere or the equator, and a negative value denotes southern hemisphere. The number of digits to represent the precision of the coordinate.", "example": "48.85837", "minimum": -3.402823669209384e+38, "multipleOf": 3.402823669209384e+38 }, "longitude": { "type": "number", "description": "Longitude of the position expressed in decimal degrees (WSG 84), e.g. -75.581211. A positive value denotes east longitude or the prime meridian, and a negative value denotes west longitude. The number of digits to represent the precision of the coordinate.", "example": "2.294481", "minimum": -3.402823669209384e+38, "multipleOf": 3.402823669209384e+38 } } }, "address": { "type": "object", "properties": { "countryName": { "type": "string", "description": "Name of the country of the location", "example": "France" }, "countryCode": { "type": "string", "description": "Code of the country of the location in ISO standard", "example": "FR" }, "stateCode": { "type": "string", "description": "Code of the state of the location (if any)", "example": "FR-13" }, "regionCode": { "type": "string", "description": "Code of the region of the location in ISO standard", "example": "EUROP" } } }, "timeZone": { "type": "object", "properties": { "offSet": { "type": "string", "description": "'Total offset from UTC including the Daylight Saving Time (DST) following ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) standard'", "example": "+01:00" }, "referenceLocalDateTime": { "type": "string", "description": "Date and time used as reference to determine the time zone name, code, offset, and dstOffset following ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) standard.", "example": "2022-09-28T19:20:30" } } }, "metrics": { "type": "object", "properties": { "relevance": { "description": "Score value based on the number of travelers per year and per destination. Score is between 0 and 100, 100 being the value for the destination city with the highest value of travelers for the origin airport", "example": "100", "type": "integer" } } } } } }, "meta": { "title": "meta", "type": "object", "description": "Meta information about the returned object(s) in \"data\"", "properties": { "count": { "type": "integer", "description": "Total number of object(s) retrieved", "format": "int64", "example": 1 }, "links": { "type": "object", "description": "Links related to the returned object(s)", "properties": { "self": { "type": "string", "description": "Link to the same page.", "format": "uri", "example": "https://example.com/resource" } } } } } } }