distance-matrix
Calculate travel distances and durations between multiple origin and destination points using various transportation modes including driving, walking, bicycling, and transit.
Instructions
Calculate travel distance and time between multiple origins and destinations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destinations | Yes | Array of destination locations | |
mode | No | Travel mode | |
origins | Yes | Array of origin locations |
Input Schema (JSON Schema)
{
"properties": {
"destinations": {
"description": "Array of destination locations",
"items": {
"type": "string"
},
"type": "array"
},
"mode": {
"description": "Travel mode",
"enum": [
"driving",
"walking",
"bicycling",
"transit"
],
"type": "string"
},
"origins": {
"description": "Array of origin locations",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"origins",
"destinations"
],
"type": "object"
}