Mapbox Nav Isochrone Get Isochrone

1.6积分/次
ae_mapbox_nav_isochrone_get_isochrone

显示从指定位置出发,在特定时间或距离内可通过驾车、骑行或步行到达的区域。

地图
1.6积分/次

价格说明

1.6积分/次
条件费用
每次调用1.6积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_mapbox_nav_isochrone_get_isochrone' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "profile": "mapbox/driving-traffic",
    "coordinates": "xxx"
  }
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
denoisenumber否A floating point value from 0.0 to 1.0 that can be used to remove smaller contours. The default is 1.0. A value of 1.0 will only return the largest contour for a given value.—
excludestring否Exclude certain road types and custom locations from routing. Default is to not exclude anything. You can specify multiple values as a comma-separated list.—
profileenum (mapbox/driving-traffic | mapbox/driving | mapbox/walking | mapbox/cycling)是A Mapbox Directions routing profile ID.—
polygonsboolean否Specify whether to return the contours as GeoJSON polygons (true) or linestrings (false, default). When polygons=true, any contour that forms a ring is returned as a polygon.—
depart_atstring否The departure time from the given coordinates. Formatted in one of three ISO 8601 formats: YYYY-MM-DDThh:mm:ssZ, YYYY-MM-DDThh:mmss±hh:mm, or YYYY-MM-DDThh:mm.—
generalizenumber否A positive floating point value, in meters, used as the tolerance for Douglas-Peucker generalization specified for each contour.—
coordinatesstring是A {longitude,latitude} coordinate pair around which to center the isochrone lines.—
contours_colorsstring否The colors to use for each isochrone contour, specified as hex values without a leading # (for example, ff0000 for red). If this parameter is used, there must be the same number of colors as there are entries in contours_minutes or contours_meters.—
contours_metersstring否The distances, in meters, to use for each isochrone contour. You can specify up to four contours. Distances must be in increasing order. The maximum distance that can be specified is 100000 meters (100km).—
contours_minutesstring否The times, in minutes, to use for each isochrone contour. You can specify up to four contours. Times must be in increasing order. The maximum time that can be specified is 60 minutes.—