maps_distance_matrix
Calculate travel distances and times between multiple origins and destinations using driving, walking, bicycling, or transit modes for efficient route planning.
Instructions
計算多個起點和終點之間的距離和時間
Input Schema
Name | Required | Description | Default |
---|---|---|---|
destinations | Yes | 終點地址或座標列表 | |
mode | No | 交通模式 | driving |
origins | Yes | 起點地址或座標列表 |
Input Schema (JSON Schema)
{
"properties": {
"destinations": {
"description": "終點地址或座標列表",
"items": {
"type": "string"
},
"type": "array"
},
"mode": {
"default": "driving",
"description": "交通模式",
"enum": [
"driving",
"walking",
"bicycling",
"transit"
],
"type": "string"
},
"origins": {
"description": "起點地址或座標列表",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"origins",
"destinations"
],
"type": "object"
}