maps_distance
Calculate distances between geographic coordinates for driving, walking, or straight-line routes using AMap Maps data.
Instructions
距离测量 API 可以测量两个经纬度坐标之间的距离,支持驾车、步行以及球面距离测量
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | 起点经度,纬度,可以传多个坐标,使用竖线隔离,比如120,30|120,31,坐标格式为:经度,纬度 | |
| destination | Yes | 终点经度,纬度,坐标格式为:经度,纬度 | |
| type | No | 距离测量类型,1代表驾车距离测量,0代表直线距离测量,3步行距离测量 |
Input Schema (JSON Schema)
{
"properties": {
"destination": {
"description": "终点经度,纬度,坐标格式为:经度,纬度",
"type": "string"
},
"origins": {
"description": "起点经度,纬度,可以传多个坐标,使用竖线隔离,比如120,30|120,31,坐标格式为:经度,纬度",
"type": "string"
},
"type": {
"description": "距离测量类型,1代表驾车距离测量,0代表直线距离测量,3步行距离测量",
"type": "string"
}
},
"required": [
"origins",
"destination"
],
"type": "object"
}