maps_distance
Calculate driving, walking, or straight-line distance from one or multiple origins to a destination.
Instructions
距离测量 API 可以测量两个经纬度坐标之间的距离,支持驾车、步行以及球面距离测量
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | 起点经度,纬度,可以传多个坐标,使用竖线隔离,比如120,30|120,31,坐标格式为:经度,纬度 | |
| destination | Yes | 终点经度,纬度,坐标格式为:经度,纬度 | |
| type | No | 距离测量类型,1代表驾车距离测量,0代表直线距离测量,3步行距离测量 |