{
  "$id": "https://schema.nfh.global/Plan/v2.0",
  "x-iri": "https://schema.nfh.global/Plan/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Plan",
  "type": "object",
  "description": "A journey planning response containing one or more itinerary options for a given trip request.",
  "properties": {
    "requestedTime": {
      "description": "The departure or arrival time that was requested",
      "type": "string",
      "format": "date-time"
    },
    "itineraries": {
      "description": "List of itinerary options returned in the plan",
      "$ref": "https://schema.nfh.global/Itinerary/v2.0/schema.json"
    },
    "from": {
      "description": "Origin location for this plan",
      "$ref": "https://schema.nfh.global/Location/v2.0/schema.json"
    },
    "to": {
      "description": "Destination location for this plan",
      "$ref": "https://schema.nfh.global/Location/v2.0/schema.json"
    },
    "id": {
      "description": "Unique identifier for the catalog",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the catalog",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "tags": {
      "description": "Tags associated with the catalog",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "ride-hailing"
  ]
}
