Amadeus · Schema

category-rated-areas

category-rated-areas schema from Location Score

TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights
View JSON Schema on GitHub

JSON Schema

location-score-category-rated-areas-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/location-score-category-rated-areas-schema.json",
  "title": "category-rated-areas",
  "description": "category-rated-areas schema from Location Score",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "geoCode": {
          "type": "object",
          "description": "Geographic coordinates describing the position of any location on the surface of Earth",
          "title": "GeoCode",
          "properties": {
            "latitude": {
              "type": "number",
              "format": "float",
              "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.",
              "minimum": -90,
              "exclusiveMinimum": false,
              "maximum": 90,
              "exclusiveMaximum": false,
              "example": 48.85837
            },
            "longitude": {
              "type": "number",
              "format": "float",
              "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.",
              "minimum": -180,
              "exclusiveMinimum": false,
              "maximum": 180,
              "exclusiveMaximum": false,
              "example": 2.294481
            }
          }
        },
        "radius": {
          "type": "integer",
          "description": "Radius of the area in meters"
        },
        "categoryScores": {
          "type": "object",
          "description": "category scoring of the location",
          "properties": {
            "sight": {
              "type": "object",
              "description": "sight category",
              "properties": {
                "overall": {
                  "type": "integer",
                  "description": "score of sight seeing possibility from 0 (nothing to see) to 100 (many sceneries to enjoy)"
                },
                "historical": {
                  "type": "integer",
                  "description": "score of historical discovery possibility from 0 (no historical site) to 100 (many historical site to enjoy)"
                },
                "beachAndPark": {
                  "type": "integer",
                  "description": "score of outdoor activity possibility from 0 (no outdoor spaces) to 100 (many parks or beaches to enjoy)"
                }
              }
            },
            "restaurant": {
              "type": "object",
              "description": "restaurant category",
              "properties": {
                "overall": {
                  "type": "number",
                  "description": "score of eating possibility from 0 (no place to eat) to 100 (many restaurants to enjoy)"
                },
                "vegetarian": {
                  "type": "number",
                  "description": "score of vegetatian eating possibility from 0 (no place to eat vegetatian) to 100 (many restaurants to enjoy)"
                }
              }
            },
            "shopping": {
              "type": "object",
              "description": "shopping category",
              "properties": {
                "overall": {
                  "type": "number",
                  "description": "score of shopping possibility from 0 (no shop) to 100 (many shops to enjoy)"
                },
                "luxury": {
                  "type": "number",
                  "description": "score of luxury shopping possibility from 0 (no luxury shop) to 100 (many luxury shops to enjoy)"
                }
              }
            },
            "nightLife": {
              "type": "object",
              "description": "night life category",
              "properties": {
                "overall": {
                  "type": "number",
                  "description": "score of nigh life possibility from 0 (nothing to do at night) to 100 (many night activities to enjoy)"
                }
              }
            }
          }
        }
      }
    },
    {
      "title": "Abstract Resource",
      "type": "object",
      "description": "Identification of a specific version of a resource  ",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the manipulatd resource",
          "example": "PNR"
        }
      }
    }
  ]
}