{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:TravelAction",
  "title": "TravelAction",
  "description": "The act of traveling from a fromLocation to a destination by a specified mode of transport, optionally with participants.",
  "type": "object",
  "allOf": [
    {
      "description": "The act of an agent relocating to a place.\\n\\nRelated actions:\\n\\n* [[TransferAction]]: Unlike TransferAction, the subject of the move is a living Person or Organization rather than an inanimate object.",
      "$ref": "schema:MoveAction"
    }
  ],
  "properties": {
    "distance": {
      "description": "The distance travelled, e.g. exercising or travelling.",
      "oneOf": [
        { "type": "string", "$comment": "https://schema.org/Distance" },
        {
          "type": "array",
          "items": {
            "type": "string",
            "$comment": "https://schema.org/Distance"
          }
        }
      ]
    }
  }
}
