Google Super

GOOGLESUPER_COMPUTE_ROUTE_MATRIX

Calculates travel distance and duration matrix between multiple origins and destinations using the modern Routes API; supports OAuth2 authentication and various travel modes.

Remote googlesuper

Other tools also called GOOGLESUPER_COMPUTE_ROUTE_MATRIX? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "units": {
      "enum": [
        "METRIC",
        "IMPERIAL"
      ],
      "type": "string",
      "title": "Units",
      "default": "IMPERIAL",
      "examples": [
        "IMPERIAL",
        "METRIC"
      ],
      "description": "Unit system (e.g., 'METRIC' for kilometers, 'IMPERIAL' for miles) for displaying distances."
    },
    "origins": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "RouteMatrixOriginDestination",
        "properties": {
          "address": {
            "type": "string",
            "title": "Address",
            "default": null,
            "examples": [
              "1600 Amphitheatre Parkway, Mountain View, CA"
            ],
            "nullable": true,
            "description": "Address as a string. Provide either address or latitude/longitude."
          },
          "latitude": {
            "type": "number",
            "title": "Latitude",
            "default": null,
            "examples": [
              37.4224764
            ],
            "nullable": true,
            "description": "Latitude in decimal degrees. Must be used with longitude."
          },
          "longitude": {
            "type": "number",
            "title": "Longitude",
            "default": null,
            "examples": [
              -122.0842499
            ],
            "nullable": true,
            "description": "Longitude in decimal degrees. Must be used with latitude."
          }
        },
        "description": "A single origin or destination location for the route matrix."
      },
      "title": "Origins",
      "examples": [
        [
          {
            "address": "1600 Amphitheatre Parkway, Mountain View, CA"
          },
          {
            "latitude": 37.403184,
            "longitude": -122.097371
          }
        ]
      ],
      "minItems": 1,
      "description": "List of origin locations. Each can be specified as an address or latitude/longitude coordinates."
    },
    "fieldMask": {
      "type": "string",
      "title": "Field Mask",
      "default": "originIndex,destinationIndex,duration,distanceMeters,status,condition",
      "examples": [
        "originIndex,destinationIndex,duration,distanceMeters",
        "originIndex,destinationIndex,duration,distanceMeters,status,condition"
      ],
      "description": "Comma-separated list of response fields to include (e.g., 'originIndex,destinationIndex,duration,distanceMeters'). Use '*' for all fields."
    },
    "travelMode": {
      "enum": [
        "DRIVE",
        "BICYCLE",
        "WALK",
        "TWO_WHEELER",
        "TRANSIT"
      ],
      "type": "string",
      "title": "Travel Mode",
      "default": "DRIVE",
      "examples": [
        "DRIVE",
        "BICYCLE",
        "WALK",
        "TRANSIT"
      ],
      "description": "Mode of transportation for the route matrix calculation."
    },
    "destinations": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "RouteMatrixOriginDestination",
        "properties": {
          "address": {
            "type": "string",
            "title": "Address",
            "default": null,
            "examples": [
              "1600 Amphitheatre Parkway, Mountain View, CA"
            ],
            "nullable": true,
            "description": "Address as a string. Provide either address or latitude/longitude."
          },
          "latitude": {
            "type": "number",
            "title": "Latitude",
            "default": null,
            "examples": [
              37.4224764
            ],
            "nullable": true,
            "description": "Latitude in decimal degrees. Must be used with longitude."
          },
          "longitude": {
            "type": "number",
            "title": "Longitude",
            "default": null,
            "examples": [
              -122.0842499
            ],
            "nullable": true,
            "description": "Longitude in decimal degrees. Must be used with latitude."
          }
        },
        "description": "A single origin or destination location for the route matrix."
      },
      "title": "Destinations",
      "examples": [
        [
          {
            "address": "85 10th Ave, New York, NY"
          },
          {
            "latitude": 37.383047,
            "longitude": -122.044651
          }
        ]
      ],
      "minItems": 1,
      "description": "List of destination locations. Each can be specified as an address or latitude/longitude coordinates."
    },
    "languageCode": {
      "type": "string",
      "title": "Language Code",
      "default": "en-US",
      "examples": [
        "en-US",
        "es",
        "fr"
      ],
      "description": "BCP-47 language code (e.g., 'en-US', 'es') for textual information."
    },
    "routingPreference": {
      "enum": [
        "ROUTING_PREFERENCE_UNSPECIFIED",
        "TRAFFIC_UNAWARE",
        "TRAFFIC_AWARE",
        "TRAFFIC_AWARE_OPTIMAL"
      ],
      "type": "string",
      "title": "Routing Preference",
      "default": "TRAFFIC_AWARE",
      "examples": [
        "TRAFFIC_AWARE",
        "TRAFFIC_UNAWARE"
      ],
      "description": "Specifies routing preference: `TRAFFIC_UNAWARE` (fastest, ignores traffic), `TRAFFIC_AWARE` (considers traffic, optimized), `TRAFFIC_AWARE_OPTIMAL` (most accurate traffic-based routing), or `ROUTING_PREFERENCE_UNSPECIFIED` (behavior similar to `TRAFFIC_UNAWARE`)."
    }
  }
}