grubhub · JSON Structure

Grubhub Driver Structure

Information about the assigned delivery driver.

Type: object Properties: 5

Driver is a JSON Structure definition published by grubhub, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name phone delivery_method latitude longitude

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/grubhub/refs/heads/main/json-structure/grubhub-driver-structure.json",
  "name": "Driver",
  "description": "Information about the assigned delivery driver.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The driver's display name."
    },
    "phone": {
      "type": "string",
      "description": "The driver's contact phone number."
    },
    "delivery_method": {
      "type": "string",
      "description": "The method of delivery being used by the driver.",
      "enum": [
        "CAR",
        "BIKE",
        "WALKING"
      ]
    },
    "latitude": {
      "type": "double",
      "description": "The driver's current latitude coordinate."
    },
    "longitude": {
      "type": "double",
      "description": "The driver's current longitude coordinate."
    }
  }
}