{
  "$id": "https://schema.nfh.global/RideOption/v2.0",
  "x-iri": "https://schema.nfh.global/RideOption/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RideOption",
  "type": "object",
  "description": "A specific ride-hailing vehicle category and pricing option presented to a passenger in response to a ride request.",
  "properties": {
    "vehicleType": {
      "description": "Category of vehicle for this ride option",
      "$ref": "https://schema.nfh.global/VehicleCategory/v2.0/schema.json"
    },
    "estimatedArrival": {
      "description": "Estimated vehicle arrival time at the pickup point",
      "type": "string",
      "format": "date-time"
    },
    "estimatedDuration": {
      "description": "Estimated trip duration",
      "type": "string",
      "format": "duration"
    },
    "estimatedDistance": {
      "description": "Estimated trip distance in kilometres",
      "type": "number"
    },
    "pricingModel": {
      "description": "Pricing model applicable to this ride option",
      "$ref": "https://schema.nfh.global/SystemPricingPlan/v2.0/schema.json"
    },
    "id": {
      "description": "Unique identifier for the offer",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the offer",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "price": {
      "description": "Price specification for this offer",
      "$ref": "https://schema.nfh.global/PriceSpecification/v2.1/schema.json"
    },
    "validity": {
      "description": "Validity period of the offer",
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    },
    "tags": {
      "description": "Tags or labels associated with the offer",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "ride-hailing"
  ]
}
