Amadeus · Schema
Location
Location schema from Safe Place
TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights
Properties
| Name | Type | Description |
|---|---|---|
| id | string | id of the ressource |
| self | object | |
| type | string | the resource name |
| subType | string | location sub type |
| name | string | short name of the location |
| geoCode | object |
JSON Schema
{
"$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"
}