{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/safe-place-location-schema.json", "title": "Location", "description": "Location schema from Safe Place", "properties": { "id": { "description": "id of the ressource", "type": "string", "example": "12345" }, "self": { "required": [ "href" ], "properties": { "href": { "type": "string", "format": "uri", "example": "https://example.com/resource" }, "methods": { "type": "array", "items": { "type": "string", "enum": [ "GET", "PUT", "DELETE", "POST", "PATCH" ] } }, "count": { "type": "integer", "example": 1 } }, "example": { "href": "string" } }, "type": { "description": "the resource name", "type": "string", "example": "location" }, "subType": { "description": "location sub type", "type": "string", "enum": [ "AIRPORT", "CITY", "POINT_OF_INTEREST", "DISTRICT" ], "example": "AIRPORT" }, "name": { "description": "short name of the location", "type": "string", "example": "Paris CDG" }, "geoCode": { "properties": { "latitude": { "description": "latitude of the location", "type": "number", "format": "double", "example": 43.580418 }, "longitude": { "description": "longitude of the location", "type": "number", "format": "double", "example": 7.125102 } } } }, "type": "object" }