Mapbox Tools
Mapbox Retrieve Matrix
通过 Aident Loadout 使用 Mapbox Tools 的 Mapbox Retrieve Matrix。执行前查看输入、输出、设置、价格和风险。
写入操作风险等级 2/5API 密钥连接
服务提供商说明
Retrieve a travel time and/or distance matrix between multiple locations. Results cover the selected origins and destinations, with durations in seconds and distances in meters when requested.
价格与限制
- 价格
- 免费操作
- 统一支付
- 暂不支持
输入
- Transportation mode for routing: 'mapbox/driving' (car), 'mapbox/walking' (pedestrian), 'mapbox/cycling' (bicycle), or 'mapbox/driving-traffic' (car with live traffic, max 10 coords).profilestring必填
- Which coordinates to use as origins (starting points). Use 'all' (default) for all coordinates, or semicolon-separated 0-based indices (e.g., '0;2;4' for coords at index 0, 2, and 4).sourcesstring
- Semicolon-separated 'angle,deviation' pairs per waypoint; angle 0–360, deviation in degrees; skip with ';'.bearingsstring
- BETA: desired departure time in ISO 8601 format (e.g., YYYY-MM-DDThh:mm:ssZ).depart_atstring
- Semicolon-separated list per waypoint: 'unrestricted' or 'curb'. Count must match number of coordinates; skip entries with ';'.approachesstring
- Data to return in the matrix: 'duration' (travel time in seconds), 'distance' (travel distance in meters), or 'duration,distance' (both). Default: 'duration'.annotationsstring
- List of 2-25 geographic points (longitude, latitude pairs). The API calculates travel times/distances between these points. Maximum 10 for 'mapbox/driving-traffic' profile.coordinatesarray必填
- Mapbox access token (optional; auto-provided by auth).access_tokenstring
- Which coordinates to use as destinations (ending points). Use 'all' (default) for all coordinates, or semicolon-separated 0-based indices (e.g., '1;3;5' for coords at index 1, 3, and 5).destinationsstring
- Speed in km/h for straight-line distance estimates when no routable path exists between points (e.g., across water). Must be > 0 if specified.fallback_speedinteger
可观察输出
- Data from the action executiondata必填
- Error if any occurred during the execution of the actionerrorstring
- Whether or not the action execution was successful or notsuccessfulboolean必填
使用此操作的技能
相关使用场景
尚未关联经过验证的相关使用场景。